/* ===========================================================================
   HD Marrakech — account and management panel

   The same system as the storefront: bone ground, ink chrome, editorial serif
   headings, hairline rules, pill controls and one amber accent. The panel's
   markup is generated by portal.js and operations-ui.js and is deliberately
   left alone — this file is the whole visual layer.
   ======================================================================== */

@import url('/bone.css');

:root {
  --pad-panel: clamp(18px, 2vw, 28px);
}

body {
  background: var(--bone);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

.initial-loading {
  padding: 20vh var(--gutter);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

h1,
h2 {
  font-family: var(--display);
  font-variation-settings: var(--display-settings);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ----------------------------------------------------------------- sign in */
.portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  border-block-end: 1px solid var(--line);
  background: var(--bone);
}

.portal-top > a:last-child {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--line);
}

.portal-top > a:last-child:hover {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--amber);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img,
.original-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
  background: none;
}

.brand span {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-start: 2px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  min-height: calc(100vh - 68px);
}

.auth-story {
  background: var(--forest);
  color: var(--on-forest);
  padding: clamp(36px, 6vw, 84px) clamp(24px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-story .eyebrow {
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--on-forest-2);
  margin: 0;
}

.auth-story h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  color: var(--bone);
  font-weight: 300;
  line-height: 1.05;
  margin: 0;
}

.auth-story h1 em {
  font-style: italic;
  color: var(--clay-light);
}

.auth-story p {
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--on-forest-2);
  max-width: 40ch;
  margin: 0;
}

.auth-form-wrap {
  padding: clamp(32px, 5vw, 76px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.auth-form-wrap h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 8px;
}

.auth-form-wrap .muted {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0 0 22px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-block-start: 20px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--line);
}

.auth-links button {
  border: 0;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--line);
}

.auth-links button:hover {
  color: var(--amber-deep);
  box-shadow: inset 0 -1px 0 var(--amber);
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-story {
    padding-block: 30px 34px;
  }

  .auth-form-wrap {
    max-width: none;
  }
}

/* ------------------------------------------------------------------- forms */
.portal-form,
.ops-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.consent,
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-2);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.consent input,
.checkline input {
  margin-block-start: 3px;
  accent-color: var(--olive);
  width: 16px;
  height: 16px;
  flex: none;
}

.notice {
  background: var(--bone-2);
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 13px 15px;
  font-size: var(--fs-xs);
  line-height: 1.65;
  text-align: start;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.notice span::before {
  content: none;
}

.form-error {
  font-size: var(--fs-xs);
  color: #9a3c22;
  margin: 0;
  min-height: 1em;
}

.form-error:empty {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid var(--clay);
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.button:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: #fff;
}

.button.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button.outline:hover {
  background: var(--bone-2);
  border-color: var(--muted);
  color: var(--text);
}

.button.small {
  min-height: 38px;
  padding: 7px 17px;
  font-size: var(--fs-xs);
}

.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--line);
}

.text-button:hover {
  color: #9a3c22;
  box-shadow: inset 0 -1px 0 #9a3c22;
}

/* ------------------------------------------------------------------- shell */
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--forest);
  color: var(--on-forest);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 18px;
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand span {
  color: var(--bone);
}

.sidebar .brand small {
  color: var(--on-forest-2);
}

.sidebar nav {
  display: grid;
  gap: 2px;
}

.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-forest-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.sidebar nav button span {
  color: var(--clay-light);
  font-size: 0.9em;
}

.sidebar nav button:hover {
  background: rgba(238, 243, 236, 0.08);
  color: var(--on-forest);
}

.sidebar nav button.active {
  background: rgba(238, 243, 236, 0.14);
  color: var(--on-forest);
  box-shadow: inset 2px 0 0 var(--clay-light);
}

.sidebar-bottom {
  margin-block-start: auto;
  display: grid;
  gap: 10px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--forest-line);
}

.sidebar-bottom a,
.sidebar-bottom button {
  border: 0;
  background: none;
  padding: 4px 0;
  text-align: start;
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--on-forest-2);
}

.sidebar-bottom a:hover,
.sidebar-bottom button:hover {
  color: var(--on-forest);
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.workspace-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(18px, 3vw, 40px);
  border-block-end: 1px solid var(--line);
  background: color-mix(in srgb, var(--bone) 90%, transparent);
  backdrop-filter: blur(12px);
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.workspace-top > span:first-child {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.66rem;
}

.user-pill {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 5px;
  padding-inline: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text);
}

.avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-forest);
  font-size: 0.72rem;
}

.workspace-top > a {
  font-weight: 600;
  color: var(--text-2);
}

.workspace-top > a:hover {
  color: var(--text);
}

.mobile-signout {
  display: none;
}

.workspace-content {
  padding: clamp(22px, 3vw, 44px) clamp(18px, 3vw, 40px) 72px;
  flex: 1;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 16px;
    padding: 16px var(--gutter);
  }

  .sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav button {
    white-space: nowrap;
    border-radius: var(--radius-pill);
    width: auto;
  }

  .sidebar nav button.active {
    box-shadow: none;
    background: var(--amber);
    color: #fff;
  }

  .sidebar-bottom {
    display: none;
  }

  .mobile-signout {
    display: inline-block;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-2);
  }
}

/* ----------------------------------------------------------------- content */
.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-block-end: 20px;
  margin-block-end: 26px;
  border-block-end: 1px solid var(--line);
}

.page-heading h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 6px;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 58ch;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-panel);
  margin-block-end: 18px;
}

.panel h2 {
  font-size: 1.28rem;
  margin: 0 0 10px;
}

.panel > p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin: 0 0 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-block-end: 18px;
}

.stat {
  background: var(--paper);
  padding: 17px 19px;
  display: grid;
  gap: 4px;
}

.stat span {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat strong {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat small {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-feed {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-feed li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  border-block-start: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.activity-feed li:first-child {
  border-block-start: 0;
}

.activity-feed time {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.portal-footer-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
  margin-block-start: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 18px;
  padding: 0;
  border: 0;
}

.toolbar input {
  flex: 1 1 240px;
}

.toolbar select {
  width: auto;
  min-width: 170px;
}

/* -------------------------------------------------------------- offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.offer-card > div {
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.offer-card h2 {
  font-size: 1.14rem;
  margin: 0;
}

.offer-card p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.offer-card footer {
  margin-block-start: auto;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-card footer strong {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40;
  font-size: 1.12rem;
  font-weight: 500;
}

.offer-card footer button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--line);
  padding: 3px 0;
}

.offer-card footer button:hover {
  color: var(--amber-deep);
  box-shadow: inset 0 -1px 0 var(--amber);
}

.status {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bone-2);
  color: var(--text-2);
}

.status.published,
.status.closed {
  background: #e2ead9;
  color: #3c5030;
}

.status.draft,
.status.reviewing {
  background: var(--amber-wash);
  color: var(--amber-deep);
}

.status.archived {
  background: var(--bone-2);
  color: var(--muted);
}

.status.new {
  background: var(--ink);
  color: var(--on-ink);
}

/* ------------------------------------------------------------------ tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

th,
td {
  text-align: start;
  padding: 13px 16px;
  border-block-end: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bone-2);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-block-end: 0;
}

td button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--line);
  padding: 2px 0;
}

td button:hover {
  color: var(--amber-deep);
  box-shadow: inset 0 -1px 0 var(--amber);
}

/* ------------------------------------------------------------------- trips */
.trip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.saved-trip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-panel);
  display: grid;
  gap: 7px;
  align-content: start;
}

.saved-trip .eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.saved-trip h2 {
  font-size: 1.28rem;
  margin: 0;
}

.saved-trip p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
}

.saved-trip strong {
  font-family: var(--display);
  font-variation-settings: 'opsz' 50;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.trip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-block-start: 8px;
}

.trip-actions button:not(.button) {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  box-shadow: inset 0 -1px 0 var(--line);
  padding: 3px 0;
}

.trip-actions button:not(.button):hover {
  color: #9a3c22;
  box-shadow: inset 0 -1px 0 #9a3c22;
}

/* ------------------------------------------------------------------ editor */
.editor {
  max-width: 980px;
}

.back-link {
  border: 0;
  background: none;
  padding: 4px 0;
  margin-block-end: 14px;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
}

.back-link:hover {
  color: var(--amber-deep);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.editor-grid .wide {
  grid-column: 1 / -1;
}

.language-heading {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 14px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 18px;
}

.image-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.image-editor img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
}

.image-editor > div {
  display: grid;
  gap: 10px;
}

.upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.upload-label input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 620px) {
  .image-editor {
    grid-template-columns: 1fr;
  }
}

.pack-admin {
  border: 1px solid var(--line);
  background: var(--bone-2);
  padding: var(--pad-panel);
  margin-block-end: 14px;
  display: grid;
  gap: 12px;
}

.pack-admin h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* -------------------------------------------------------- profile, details */
.profile-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  align-items: start;
}

.profile-layout .portal-footer-note {
  grid-column: 1 / -1;
}

.request-details dl {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  margin: 0 0 20px;
}

.request-details dt {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 10px;
  border-block-start: 1px solid var(--line-soft);
}

.request-details dd {
  margin: 0;
  padding-block: 10px;
  font-size: var(--fs-sm);
  border-block-start: 1px solid var(--line-soft);
}

.request-note {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.ops-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.ops-pre {
  background: var(--bone-2);
  border: 1px solid var(--line);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ------------------------------------------------------- empty, no access */
.empty-panel,
.no-access {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 44px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 13px;
  max-width: 640px;
  margin-inline: auto;
}

.no-access {
  margin-block-start: 12vh;
}

.empty-panel h2,
.no-access h1 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0;
}

.empty-panel p,
.no-access p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  max-width: 48ch;
}

/* ---------------------------------------------------------- toast, dialog */
.portal-toast {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 50%;
  transform: translate(-50%, 18px);
  z-index: 140;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: min(92vw, 460px);
  text-align: center;
}

.portal-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  max-width: min(94vw, 520px);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(20, 17, 13, 0.62);
}

.recovery-content {
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  gap: 13px;
}

.recovery-content .eyebrow {
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0;
}

.recovery-content h2 {
  font-size: 1.5rem;
  margin: 0;
}

.recovery-content p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.recovery-content code {
  display: block;
  padding: 14px;
  background: var(--bone-2);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.small {
  font-size: var(--fs-xs);
}

.muted {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .portal-toast {
    transition: none;
  }
}

/* -------------------------------------------------------- quote and ledger */
.quote__total {
  font-family: var(--display);
  font-variation-settings: 'opsz' 72;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.quote__days {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.quote__days li {
  display: flex;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  padding-block: 8px;
  border-block-start: 1px solid var(--line-soft);
}

.quote__days i {
  font-style: normal;
  font-weight: 700;
  color: var(--clay-deep);
  white-space: nowrap;
  min-width: 5em;
}

.inbox-body td {
  background: var(--bone-2);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  word-break: break-all;
}


/* What an experience may do today, said in the list and in the editor. */
.offer-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.offer-ready::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.ready-bookable { color: #1c6b46; }
.ready-request { color: #a8521f; }
.ready-draft { color: #6c6257; }

.ready-list {
  margin: 10px 0 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #4a443c;
}

.ready-list--blocked {
  color: #8a2f1c;
}
