:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #171717;
  --muted: #707070;
  --faint: #aaa9a4;
  --line: #dedbd4;
  --line-strong: #cfcac2;
  --green: #68d979;
  --red: #ff8e8e;
  --yellow: #eee66d;
  --blue: #cfe2ff;
  --ready: #4bbd5e;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans Thai", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.home-frame,
.workspace-frame,
.settings-frame {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.home-frame {
  padding: 34px 42px 18px;
  gap: 14px;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.header-date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.home-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  font-weight: 900;
}

.account-line {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar,
.step-tabs::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.card-action,
.icon-action,
.menu-dot,
.evidence-box,
.prepared-item,
.step-tab,
.nav-button,
.preview-action,
.composer-tool,
.composer-send {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.filter-chip {
  min-width: 118px;
  height: 34px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.filter-chip.active,
.card-action.primary,
.composer-send,
.preview-action {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 360px));
  gap: 18px;
  align-items: start;
  align-content: start;
  justify-content: start;
  padding: 2px 0 84px;
}

.task-card {
  min-height: 332px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.task-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
}

.empty-card p,
.system-message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.system-message {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  font-weight: 800;
  width: fit-content;
}

.priority-card {
  min-height: 356px;
}

.card-head,
.workspace-card-head,
.step-head,
.preview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-title {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.08;
  font-weight: 900;
}

.workspace-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  font-weight: 900;
}

.source-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.small-pill {
  min-width: 46px;
  height: 22px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 850;
  line-height: 22px;
  text-align: center;
}

.pill-life {
  background: var(--green);
}

.pill-work {
  background: var(--blue);
}

.pill-urgent {
  background: var(--red);
}

.pill-important {
  background: var(--yellow);
}

.card-body,
.workspace-summary,
.step-hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card-body {
  color: #333;
}

.workspace-summary {
  max-width: 760px;
  color: var(--ink);
}

.menu-dot,
.icon-action {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
}

.menu-dot {
  font-size: 14px;
  letter-spacing: 1px;
}

.task-menu-wrap {
  position: relative;
  display: inline-flex;
}

.task-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(23, 23, 23, 0.12);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.task-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.task-menu button:hover {
  background: var(--surface-soft);
}

.evidence-box {
  width: 100%;
  min-height: 96px;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  background: var(--surface-soft);
}

.evidence-box:hover {
  border-color: var(--line-strong);
}

.evidence-compact {
  min-height: 88px;
}

.evidence-token {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.evidence-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.source-grid-icon {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 4px;
  justify-content: center;
  align-content: center;
  background: #f2f1ee;
  border: 1px solid var(--line);
}

.source-grid-icon span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8e8e93;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: .74fr 1fr 1fr;
  gap: 9px;
}

.card-action {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-frame {
  padding: 18px 28px;
  gap: 14px;
}

.settings-frame {
  padding: 18px 28px;
  gap: 18px;
}

.settings-frame .workspace-nav {
  grid-template-columns: 80px 1fr auto;
}

.workspace-nav {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  min-height: 40px;
}

.text-back {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.nav-title {
  text-align: center;
  font-size: 14px;
  font-weight: 850;
}

.workspace-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: var(--surface);
}

.work-area {
  flex: 1;
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.work-area-single {
  grid-template-columns: minmax(0, 1fr);
}

.prepared-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.prepared-list {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: var(--surface);
}

.prepared-list-empty {
  min-height: 88px;
}

.prepared-item {
  min-height: 72px;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface-soft);
}

.prepared-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: cover;
}

.prepared-name,
.prepared-status {
  display: block;
}

.prepared-name {
  font-size: 14px;
  font-weight: 900;
}

.prepared-status {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.step-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: var(--surface);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-width: 0;
}

.step-head {
  align-items: flex-start;
}

.step-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 900;
}

.step-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.step-meter {
  display: flex;
  gap: 7px;
}

.step-line {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.step-line.active {
  background: var(--ready);
}

.nav-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

.step-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.step-tab {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.step-tab.active {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 270px;
}

.preview-card {
  width: min(560px, 100%);
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-soft);
}

.preview-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.preview-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  background: var(--surface);
}

.preview-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.preview-action {
  margin-top: auto;
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  font-weight: 900;
}

.task-chat-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 14px;
  min-height: 430px;
}

.task-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-intro {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.chat-bubble {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.chat-bubble.from-user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
}

.chat-bubble h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 650;
}

.chat-bubble.from-user p {
  color: rgba(255, 255, 255, .82);
}

.chat-meta {
  margin-top: 8px !important;
  color: var(--ink) !important;
  font-weight: 900 !important;
}

.chat-action {
  margin-top: 12px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.chat-action.secondary {
  background: var(--surface);
  color: var(--ink);
}

.account-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--bg);
}

.settings-content {
  display: grid;
  gap: 18px;
  align-items: start;
}

.settings-stack {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
  align-self: start;
}

.settings-message {
  width: 100%;
}

.settings-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.settings-section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.settings-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.settings-summary-box {
  min-height: 52px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 11px 14px;
  display: grid;
  align-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 850;
}

.settings-actions {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 10px;
}

.primary-pill,
.secondary-pill,
.primary-full {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
}

.primary-pill,
.primary-full {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.secondary-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.primary-full {
  width: 100%;
}

.plan-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.plan-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.language-row-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.language-row-large button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.language-row-large button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.settings-simple-row {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 20px;
  font-weight: 900;
}

.settings-simple-row strong {
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

.integration-list {
  display: grid;
}

.integration-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
}

.integration-row:first-child {
  border-top: 0;
}

.integration-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.integration-app-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.integration-copy {
  min-width: 0;
}

.integration-title,
.integration-body {
  display: block;
}

.integration-title {
  font-size: 14px;
  font-weight: 900;
}

.integration-body {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  min-width: 58px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.ready {
  background: #e2f5e6;
  color: #278a42;
}

.status-pill.setup {
  background: #fff3d7;
  color: #8a6512;
}

.source-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.source-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.source-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.settings-textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 14px;
  resize: vertical;
  outline: none;
  font: inherit;
  line-height: 1.5;
}

.settings-textarea::placeholder {
  color: var(--faint);
}

.referral-code-box {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.referral-code-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.referral-code-box strong {
  font-size: 22px;
  letter-spacing: 0;
}

.settings-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-row {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--ink);
}

.settings-row-button {
  width: 100%;
  cursor: pointer;
}

.settings-row-button:hover {
  border-color: var(--line-strong);
}

.settings-row > span:not(.setting-badge):not(.language-toggle):not(.settings-connect) {
  flex: 1;
  min-width: 0;
}

.setting-badge {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.settings-connect {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.language-toggle {
  flex: 0 0 auto;
  min-width: 122px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--surface);
}

.language-toggle button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.context-content {
  display: grid;
  gap: 18px;
  align-items: start;
}

.context-hero {
  max-width: 720px;
}

.context-record-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 480px));
  gap: 14px;
  align-items: start;
}

.context-record {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.context-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.context-record h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.context-record p,
.context-record li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.context-record p,
.context-record ul {
  margin: 0;
}

.context-record ul {
  padding-left: 20px;
}

.context-meta {
  font-size: 12px !important;
  font-weight: 800;
}

.account-card {
  width: min(460px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.account-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
}

.account-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.google-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.auth-segment button {
  min-height: 38px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.auth-segment button.active {
  background: var(--ink);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: var(--surface);
}

.composer-bar {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(14px);
}

.composer-tools {
  display: flex;
  gap: 8px;
}

.composer-tool,
.composer-send {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
}

.composer-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 0 4px;
  font-weight: 650;
}

.composer-input::placeholder {
  color: var(--faint);
}

@media (min-width: 1500px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 360px));
  }
}

@media (max-width: 980px) {
  .home-frame,
  .workspace-frame {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
  }

  .cards-grid,
  .work-area,
  .settings-content {
    grid-template-columns: 1fr;
  }

  .home-header {
    flex-direction: column;
  }

  .home-tools {
    justify-content: flex-start;
  }

  .prepared-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background: var(--surface);
  }

  .home-frame,
  .workspace-frame,
  .settings-frame {
    border-radius: 0;
    border: 0;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

  .home-frame,
  .workspace-frame,
  .settings-frame {
    padding: 22px 16px 14px;
  }

  .home-title {
    font-size: 36px;
  }

  .card-actions,
  .prepared-list {
    grid-template-columns: 1fr;
  }

  .composer-bar {
    border-radius: 20px;
    align-items: flex-start;
  }
}
