@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --card: #ffffff;
  --text: #1c2a1f;
  --muted: #5b6b5f;
  --primary: #2f8f46;
  --primary-dark: #256f37;
  --danger: #c8383b;
  --border: #d7e1d7;
  --field-height: 44px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(240, 247, 241, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-loading-overlay.hidden {
  display: none !important;
}

.app-loading-card {
  min-width: 220px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #d5e2d7;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(26, 39, 30, 0.15);
}

.app-loading-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #3f5647;
}

.app-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cfe1d3;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, #edf6ed 0%, #f7faf7 100%);
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d7e2d8;
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 1px solid #d8e4d9;
  background: #fff;
}

.login-card h1 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.login-card p {
  margin: 0;
  color: #48604f;
  font-size: 0.9rem;
}

.line-login-btn {
  width: 100%;
  background: #06c755;
  color: #fff;
}

.login-message {
  font-size: 0.82rem;
  color: #5c6f60;
}

.landing-page {
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(180deg, #ebf6eb 0%, #f7faf7 100%);
  display: grid;
  gap: 0.9rem;
}

.landing-hero {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #d7e2d8;
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem;
  text-align: center;
  display: grid;
  gap: 0.6rem;
}

.landing-logo {
  width: 94px;
  height: 94px;
  margin: 0 auto;
  border: 1px solid #d8e4d9;
  border-radius: 16px;
  background: #fff;
}

.landing-badge {
  display: inline-block;
  margin: 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #3f5a46;
  background: #eef7ef;
  border: 1px solid #d6e8d9;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.landing-hero h1 {
  margin: 0;
  font-size: 1.45rem;
}

.landing-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #4f6856;
}

.landing-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.landing-btn {
  text-decoration: none;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.9rem;
  font-weight: 600;
}

.landing-btn.primary {
  background: var(--primary);
  color: #fff;
}

.landing-btn.secondary {
  border: 1px solid #c8dccb;
  color: #2f5f3f;
  background: #eef6ef;
}

.login-back-link {
  width: 100%;
  text-decoration: none;
}

.landing-features {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.landing-feature-card {
  border: 1px solid #dce7dd;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.9rem;
}

.landing-feature-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.landing-feature-card p {
  margin: 0;
  color: #55705e;
  font-size: 0.87rem;
}

.app-header {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
  background: #eef6ee;
  position: sticky;
  top: 0;
  z-index: 5;
}

.app-header h1 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.app-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.app-header small {
  display: block;
  margin-top: 0.2rem;
  color: #597060;
  font-size: 0.8rem;
}

.app-branding {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid #c6d9c9;
  background: #fff;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  min-height: auto;
  border-radius: 50%;
  border: 1px solid #b8cfbc;
  background: #e5f2e7;
  color: #2f5f3f;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn span {
  font-size: 0.9rem;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-wrapper {
  position: relative;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-user-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2f5f3f;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(21, 31, 24, 0.12);
  padding: 0.3rem;
  display: grid;
  gap: 0.2rem;
  z-index: 10;
}

.avatar-dropdown-profile {
  border: 1px solid #dce9de;
  border-radius: 8px;
  background: #f8fcf8;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.15rem;
}

.avatar-dropdown-profile strong {
  display: block;
  font-size: 0.86rem;
  color: #274832;
}

.avatar-dropdown-profile p {
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  color: #5f7765;
}

.avatar-dropdown.hidden {
  display: none;
}

.avatar-dropdown button {
  width: 100%;
  min-height: 36px;
  text-align: left;
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: #345440;
  border-radius: 8px;
  font-size: 0.86rem;
}

.avatar-dropdown button:hover {
  background: #f1f8f2;
}

.avatar-dropdown .danger-item {
  color: #a93538;
}

.line-auth-box {
  border: 1px solid #dce9de;
  border-radius: 8px;
  padding: 0.45rem;
  margin-bottom: 0.2rem;
  background: #f8fcf8;
  display: grid;
  gap: 0.32rem;
}

.line-auth-status {
  margin: 0;
  font-size: 0.78rem;
  color: #3d5a46;
}

.line-auth-box button {
  min-height: 32px;
  text-align: center;
  font-size: 0.8rem;
  background: #06c755;
  color: #fff;
  border-radius: 6px;
}

.line-auth-box button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.layout {
  width: 100%;
  max-width: 980px;
  margin: 0.75rem auto;
  padding: 0 0.7rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.purchase-shell {
  display: grid;
  gap: 0.3rem;
}

.purchase-layout-top,
.purchase-layout-history {
  width: 100%;
}

.layout-section-label {
  display: inline-flex;
  width: fit-content;
  grid-column: 1 / -1;
  justify-self: start;
  align-self: start;
  margin: 0.2rem 0.1rem 0.05rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c7d8c7;
  background: #eef7ef;
  color: #2f5b3f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-footer {
  width: 100%;
  text-align: center;
  margin-top: 0.6rem;
  padding: 0.75rem 0.8rem 1.2rem;
  border-top: 1px solid #dce8dd;
  background: #f7fbf8;
}

.app-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: #5b6f60;
}

.app-footer-title {
  font-weight: 700;
  color: #355741;
}

.app-footer-version {
  margin-top: 0.2rem !important;
}

#appVersionBadge {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.08rem 0.45rem;
  border: 1px solid #d1ded3;
  border-radius: 999px;
  background: #f2f8f3;
  color: #46624e;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.full-span {
  grid-column: 1 / -1;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 1.03rem;
}

.purchase-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.purchase-form-header h2 {
  margin: 0;
}

.mode-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #47604e;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  min-height: auto;
}

.slider {
  position: absolute;
  inset: 0;
  background: #d5dfd6;
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(16px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.date-thai-preview {
  margin-top: 0.05rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4f6657;
}

.native-date-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.thai-date-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 0.45rem;
}

.truck-scale-fields {
  display: none;
  grid-column: span 1;
  gap: 0.35rem;
}

.truck-scale-fields.active {
  display: grid;
}

.truck-scale-result {
  margin: 0;
  font-size: 0.78rem;
  color: #46604e;
  background: #f4faf4;
  border: 1px solid #d8e8db;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.label-with-toggle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.2rem;
}

.label-with-toggle > span:first-child {
  font-size: 0.84rem;
  color: #455748;
  font-weight: 600;
}

.price-field,
.deduction-field {
  justify-content: flex-start;
}

.price-input-wrap,
.deduction-input-wrap {
  min-height: var(--field-height);
}

.price-input-wrap,
.deduction-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.price-input-wrap input,
.deduction-input-wrap input {
  flex: 1;
  min-width: 0;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0.15rem 0.52rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f6faf6;
  color: #4f6656;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #f6faf6;
  padding: 2px;
  flex-shrink: 0;
}

.toggle-btn {
  border: 0;
  min-height: 25px;
  min-width: 34px;
  padding: 0.2rem 0.48rem;
  background: transparent;
  color: #48604f;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  min-height: var(--field-height);
  font-size: 0.98rem;
  background: #fff;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #c8e8cf;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}

.preview {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.72rem;
  border-radius: 10px;
  background: #f3faf3;
  border: 1px dashed #b9d9c0;
  font-size: 0.93rem;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

button.primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

button.primary:hover {
  background: var(--primary-dark);
}

button.danger {
  background: var(--danger);
  color: white;
}

button.secondary {
  background: #eef6ef;
  border: 1px solid #c8dccb;
  color: #2f5f3f;
}

button.danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  width: 100%;
}

.action-group {
  display: flex;
  gap: 0.35rem;
}

.action-group button {
  min-height: 32px;
  padding: 0.42rem 0.55rem;
  font-size: 0.82rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.summary-grid article {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  background: #fbfdfb;
}

.summary-grid h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.summary-grid p {
  margin: 0.38rem 0 0;
  font-size: 1.14rem;
  font-weight: 700;
}

.table-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

.table-header input {
  width: 100%;
}

.table-wrap {
  display: none;
  margin-top: 0.5rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.mobile-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.purchase-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.purchase-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.purchase-card-head strong {
  font-size: 1rem;
}

.purchase-card-head span {
  font-size: 0.8rem;
  color: var(--muted);
}

.purchase-card-sub {
  font-size: 0.86rem;
  color: #2f3d31;
}

.purchase-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.purchase-card-grid div {
  background: #f8fcf8;
  border: 1px solid #e6efe6;
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.purchase-card-grid span {
  font-size: 0.76rem;
  color: var(--muted);
}

.purchase-card-grid strong {
  font-size: 0.9rem;
}

.purchase-card-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: #f0f8f0;
}

.purchase-card-amount span {
  color: var(--muted);
  font-size: 0.82rem;
}

.purchase-card-amount strong {
  font-size: 1rem;
}

.purchase-card-note {
  margin: 0;
  font-size: 0.84rem;
  color: #445446;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.card-actions button {
  min-height: 40px;
}

.mobile-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 31, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.modal-card.modal-sm {
  width: min(420px, 100%);
}

.modal-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.modal-message {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #3b4d3f;
}

#dangerClearInput {
  width: 100%;
}

#dangerClearConfirmBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.delete-preview-list {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.75rem;
  border: 1px dashed #dbe6dc;
  border-radius: 8px;
  background: #f8fcf8;
  padding: 0.45rem 0.55rem;
}

.delete-preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.83rem;
}

.delete-preview-list span {
  color: var(--muted);
}

.preview-list {
  display: grid;
  gap: 0.32rem;
}

.preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.86rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed #e2e9e3;
}

.preview-list span {
  color: var(--muted);
}

.preview-list strong {
  text-align: right;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.settings-section {
  border: 1px solid #e3ece4;
  border-radius: 10px;
  padding: 0.65rem;
  background: #fbfdfb;
  margin-top: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.modal-business {
  width: min(620px, 100%);
}

.settings-business {
  gap: 0.7rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  width: 100%;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3f5646;
}

.settings-business input,
.settings-business textarea {
  width: 100%;
}

.settings-section input,
.settings-section textarea {
  width: 100%;
}

.business-type-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.business-type-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  margin: 0;
  padding: 0.56rem 0.65rem;
  border: 1px solid #d8e6da;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.business-type-option input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 0;
}

.business-type-option:has(input:checked) {
  border-color: #8fc99d;
  background: #f1f9f2;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px dashed #dbe7dc;
  border-radius: 10px;
  background: #f8fcf8;
  padding: 0.5rem;
}

.profile-avatar-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ceddce;
  background: #fff;
}

.profile-line-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-line-id {
  margin: 0.14rem 0 0;
  font-size: 0.78rem;
  color: #5c7161;
}

.settings-section h4 {
  margin: 0;
  font-size: 0.9rem;
}

.setting-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.58rem;
  text-align: left;
  font-size: 0.88rem;
}

th {
  background: #f7fbf7;
  position: sticky;
  top: 0;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

@media (min-width: 700px) {
  .landing-page {
    padding: 1.2rem;
  }

  .landing-hero {
    padding: 1.4rem;
  }

  .landing-hero h1 {
    font-size: 1.75rem;
  }

  .landing-cta {
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .landing-btn {
    min-width: 170px;
  }

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

  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
  }

  .app-header h1 {
    font-size: 1.45rem;
  }

  .app-header p {
    font-size: 0.93rem;
  }

  .app-logo {
    width: 52px;
    height: 52px;
  }

  .layout {
    padding: 0 1rem 1.2rem;
    gap: 0.9rem;
  }

  .card {
    padding: 1rem;
  }

  .form-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .truck-scale-fields {
    grid-template-columns: 1fr;
  }

  .toggle-btn {
    min-height: 27px;
    min-width: 36px;
    font-size: 0.78rem;
  }

  .input-suffix {
    min-height: 27px;
    font-size: 0.76rem;
  }

  .preview {
    flex-direction: row;
    justify-content: space-between;
  }

  .mobile-list {
    display: none;
  }

  .table-wrap {
    display: block;
  }

  .table-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .table-header input {
    width: min(360px, 100%);
  }

  button.danger-outline {
    width: auto;
  }

  .business-type-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: 1.05rem;
  }
}
