/* Super App V1.18 — compact My Day + editable, smarter Travel */

.v18-my-day-grid {
  display:block !important;
}
.v18-calm-day,
.v18-today-card {
  width:100%;
  border:1px solid rgba(20,68,55,.09);
  border-radius:20px;
  background:rgba(255,253,248,.96);
  box-shadow:0 8px 24px rgba(28,49,41,.035);
}
.v18-calm-day {
  min-height:88px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:16px 18px;
  text-align:left;
  color:var(--ink);
}
.v18-calm-mark {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#edf1e8;
  color:#15483b;
  font-weight:800;
}
.v18-calm-day span:nth-child(2),
.v18-task-copy {
  min-width:0;
  display:grid;
  gap:3px;
}
.v18-calm-day strong,
.v18-task-copy strong {
  color:#143f35;
  font-size:1rem;
  line-height:1.25;
}
.v18-calm-day small,
.v18-task-copy small {
  color:var(--muted);
  font-size:.78rem;
  line-height:1.3;
}
.v18-row-arrow {
  color:#9aa09b;
  font-size:1.3rem;
}
.v18-today-card {
  overflow:hidden;
}
.v18-today-list {
  display:grid;
}
.v18-today-row {
  min-height:66px;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 17px;
  border:0;
  border-bottom:1px solid rgba(20,68,55,.075);
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.v18-today-row:last-child {
  border-bottom:0;
}
.v18-task-dot {
  width:14px;
  height:14px;
  border:1.5px solid rgba(20,68,55,.42);
  border-radius:50%;
}
.v18-more-tasks {
  width:100%;
  padding:11px 16px;
  border:0;
  border-top:1px solid rgba(20,68,55,.075);
  background:#faf8f1;
  color:#15483b;
  font-weight:700;
  text-align:left;
}

.v18-trip-mode-hint,
.v18-currency-suggestion {
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
#tripForm label[hidden] {
  display:none !important;
}
.v18-home-trip .trip-card-head {
  align-items:flex-start;
}
.v18-home-trip-note {
  display:block;
  margin-top:14px;
  padding:10px 12px;
  border-radius:13px;
  background:#f5f3ea;
  color:#717a72;
  font-size:.76rem;
}

.v18-trip-edit {
  position:absolute;
  top:18px;
  right:18px;
  z-index:3;
  min-height:36px;
  padding:7px 14px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#124438;
  font-weight:800;
  box-shadow:0 5px 18px rgba(0,0,0,.12);
  backdrop-filter:blur(8px);
}
.v18-home-detail .v13-detail-grid {
  grid-template-columns:1fr !important;
}
.v18-home-detail-note {
  margin:4px 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:#f5f3ea;
  color:#6f776f;
  font-size:.8rem;
  line-height:1.45;
}

.v18-trip-edit-backdrop {
  position:fixed;
  inset:0;
  z-index:1600;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(8,31,25,.34);
  backdrop-filter:blur(8px);
}
.v18-trip-editor {
  width:min(760px,100%);
  max-height:min(88vh,840px);
  overflow:auto;
  border:1px solid rgba(20,68,55,.12);
  border-radius:26px;
  background:#fffdf8;
  box-shadow:0 24px 70px rgba(12,35,29,.24);
}
.v18-trip-editor > header {
  position:sticky;
  top:0;
  z-index:2;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:15px 18px;
  border-bottom:1px solid rgba(20,68,55,.08);
  background:rgba(255,253,248,.96);
  backdrop-filter:blur(12px);
}
.v18-trip-editor header > div {
  min-width:0;
  display:grid;
  gap:1px;
}
.v18-trip-editor header span {
  color:#8a8f88;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.v18-trip-editor header strong {
  color:#123f34;
  font-family:Georgia,serif;
  font-size:1.35rem;
}
.v18-editor-close,
.v18-editor-save {
  min-height:40px;
  border-radius:13px;
}
.v18-editor-close {
  width:40px;
  padding:0;
  border:1px solid rgba(20,68,55,.12);
  background:#fff;
  color:#15483b;
  font-size:1.15rem;
}
.v18-editor-save {
  padding:9px 16px;
  border:0;
  background:#145747;
  color:#fff;
  font-weight:800;
}
.v18-trip-edit-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
  padding:20px;
}
.v18-trip-edit-form label {
  min-width:0;
  display:grid;
  gap:7px;
  color:#6c746d;
  font-size:.82rem;
}
.v18-trip-edit-form label.full,
.v18-editor-home-note.full {
  grid-column:1/-1;
}
.v18-trip-edit-form input,
.v18-trip-edit-form select,
.v18-trip-edit-form textarea {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #ded8ca;
  border-radius:14px;
  background:#fff;
  color:#143f35;
  font:inherit;
  font-size:1rem;
  padding:12px 13px;
}
.v18-trip-edit-form textarea {
  resize:vertical;
}
.v18-trip-edit-form label > small {
  color:#8a908a;
  font-size:.72rem;
  line-height:1.4;
}
.v18-editor-home-note {
  color:#6f776f;
  font-size:.8rem;
  line-height:1.5;
}
.v18-trip-edit-form [hidden] {
  display:none !important;
}

@media (max-width:820px) {
  .v18-trip-edit-backdrop {
    align-items:end;
    padding:0;
  }
  .v18-trip-editor {
    width:100%;
    max-height:90vh;
    border-radius:24px 24px 0 0;
  }
}

@media (max-width:520px) {
  .v18-calm-day {
    grid-template-columns:36px minmax(0,1fr) auto;
    min-height:78px;
    padding:13px 14px;
  }
  .v18-calm-mark {
    width:34px;
    height:34px;
  }
  .v18-today-row {
    min-height:61px;
    padding:11px 14px;
    gap:10px;
  }
  .v18-task-copy strong {
    font-size:.94rem;
  }
  .v18-trip-edit {
    top:15px;
    right:15px;
    min-height:34px;
    padding:6px 12px;
  }
  .v18-trip-edit-form {
    grid-template-columns:1fr;
    gap:13px;
    padding:17px;
  }
  .v18-trip-edit-form label.full,
  .v18-editor-home-note.full {
    grid-column:auto;
  }
  .v18-trip-editor > header {
    padding:13px 15px;
  }
}
