/* ==========================================================================
   Concierge area — the Admin artboards.
   A working tool rather than a marketing page: denser, quieter, no reveals.
   ========================================================================== */

/* body.has-solid-header (0,1,1) outranks a bare class, so match its weight. */
body.access-body,
body.concierge-body { background: var(--shell); padding-top: 0; }

/* --------------------------------------------------------------------------
   Access screen
   -------------------------------------------------------------------------- */

.access-body { background: var(--marine); }
.access {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.access__panel { width: 100%; max-width: 420px; text-align: center; }
.access__logo { height: 96px; width: auto; margin: 0 auto 32px; }
.access__title {
  font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.15;
  color: var(--on-marine); margin: 0 0 12px;
}
.access__note { font-size: 15px; line-height: 1.7; color: var(--on-marine-muted); margin: 0 0 34px; }
.access__error {
  font-size: 14px; line-height: 1.6;
  color: #F0B7A4;
  border-left: 2px solid var(--coral);
  padding: 8px 0 8px 14px;
  margin: 0 0 24px; text-align: left;
}
.access__field { text-align: left; margin-bottom: 22px; }
.access__field label {
  display: block;
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-marine-faint); margin-bottom: 8px;
}
.access__field input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(247, 243, 236, .35);
  border-radius: 0;
  padding: 11px 0;
  font-size: 16px; color: var(--on-marine);
}
.access__field input:focus { outline: none; border-bottom-color: var(--coral); }
.access__submit {
  width: 100%;
  background: var(--shell); color: var(--marine);
  border: 0; border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 20px; margin-top: 10px;
}
.access__submit:hover { background: #fff; }
.access__back {
  display: inline-block; margin-top: 28px;
  font-size: 13px; color: var(--on-marine-faint);
}
.access__back:hover { color: var(--on-marine); }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.cbar {
  background: var(--marine);
  color: var(--on-marine);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 56px;
  min-height: 78px;
  position: sticky; top: 0; z-index: 50;
  flex-wrap: wrap;
}
.cbar__left, .cbar__right { display: flex; align-items: center; gap: 28px; }
.cbar__logo img { height: 44px; width: auto; display: block; }
.cbar__divider { width: 1px; height: 32px; background: rgba(247, 243, 236, .2); }

.cbar__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.cbar__nav a {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-marine-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.cbar__nav a:hover { color: var(--on-marine); }
.cbar__nav a.is-current { color: var(--on-marine); border-bottom-color: var(--coral); }

.cbar__now {
  display: flex; align-items: baseline; gap: 10px;
  border-right: 1px solid rgba(247, 243, 236, .2);
  padding-right: 28px;
}
.cbar__now-label {
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--on-marine-faint);
}
.cbar__now-value { font-family: var(--serif); font-size: 24px; color: var(--on-marine); }
.cbar__date { font-size: 13px; color: var(--on-marine-muted); }

.cbar__btn {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-marine);
  border: 1px solid rgba(247, 243, 236, .45);
  border-radius: 2px;
  padding: 10px 18px;
  background: transparent;
}
.cbar__btn:hover { background: rgba(247, 243, 236, .12); color: var(--on-marine); }
.cbar__btn--quiet { border-color: transparent; color: var(--on-marine-faint); }
.cbar__btn--quiet:hover { color: var(--on-marine); }

/* --------------------------------------------------------------------------
   Main
   -------------------------------------------------------------------------- */

.cmain { padding: 56px 56px 120px; max-width: 1560px; margin-inline: auto; }

.ch1 { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.1; margin: 0 0 8px; }
.ch2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 18px; }
.clede { font-size: 15px; line-height: 1.75; color: var(--slate); margin: 0 0 34px; max-width: 720px; }

.chead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.chead .ch1 { margin-bottom: 0; }

.cnotice {
  background: var(--seaglass); padding: 14px 20px; margin-bottom: 28px;
  font-size: 15px; color: var(--marine);
}
.cnotice--warn { background: #F6E7E0; }

.cempty {
  border: 1px solid var(--stone);
  padding: 34px 30px;
  font-size: 16px; line-height: 1.75; color: var(--slate);
  max-width: 760px;
}

/* Summary strip ---------------------------------------------------------- */

.cstats {
  background: var(--seaglass);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 32px;
  margin: 28px 0 42px;
}
.cstat { padding: 0 28px; border-left: 1px solid rgba(18, 36, 46, .14); }
.cstat:first-child { border-left: 0; padding-left: 0; }
.cstat:last-child { padding-right: 0; }
.cstat__label {
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(18, 36, 46, .62);
  margin-bottom: 6px;
}
.cstat__value { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--marine); }

/* Tables ------------------------------------------------------------------ */

.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th {
  text-align: left;
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--taupe);
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--stone);
  white-space: nowrap;
}
.ctable td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid rgba(201, 188, 168, .5);
  vertical-align: top;
  color: var(--slate);
}
.ctable tbody tr:hover td { background: rgba(213, 224, 235, .28); }
.ctable__name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--marine); }
.ctable__sub { display: block; font-size: 13px; color: var(--taupe); margin-top: 3px; }
.ctable__date { white-space: nowrap; font-family: var(--serif); font-size: 18px; color: var(--marine); }
.ctable__actions { text-align: right; white-space: nowrap; }
.ctable__today td { background: rgba(196, 98, 63, .08); }
.ctable__noterow td { border-bottom: 1px solid rgba(201, 188, 168, .5); padding-top: 0; }
.ctable__note { font-size: 14px; color: var(--taupe); font-style: italic; }

.cpill {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; white-space: nowrap;
}
.cpill--on-site {
  background: transparent;
  color: var(--coral);
  border: 1px solid var(--coral);
  animation: onsitePulse 2.6s ease-in-out infinite;
}

/* A quiet pulse so the desk can see at a glance who is actually here. */
@keyframes onsitePulse {
  0%, 100% { border-color: #C4623F; color: #C4623F; }
  50%      { border-color: rgba(196, 98, 63, .35); color: rgba(196, 98, 63, .55); }
}

@media (prefers-reduced-motion: reduce) {
  .cpill--on-site { animation: none; }
}
.cpill--due      { background: var(--coral); color: var(--shell); }
.cpill--expected { background: transparent; color: var(--taupe); border: 1px solid var(--stone); }
.cpill--done     { background: var(--shell-3); color: var(--taupe); }

/* Buttons ----------------------------------------------------------------- */

.cbtn {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--stone); border-radius: 2px;
  background: transparent; color: var(--marine);
  cursor: pointer; text-decoration: none;
}
.cbtn:hover { border-color: var(--marine); color: var(--marine); }
.cbtn--primary { background: var(--marine); border-color: var(--marine); color: var(--shell); }
.cbtn--primary:hover { background: var(--marine-soft); color: var(--shell); }

/* Forms ------------------------------------------------------------------- */

.cform { max-width: 900px; background: #FDFBF7; padding: 44px 46px; margin-top: 10px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin-bottom: 26px; }
.cform__actions { display: flex; gap: 12px; margin-top: 32px; }

.cfield label {
  display: block;
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--taupe);
  margin-bottom: 7px;
}
.cfield input, .cfield select, .cfield textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--stone);
  border-radius: 0;
  padding: 9px 0;
  font-size: 16px; color: var(--marine);
}
.cfield select { border: 1px solid var(--stone); padding: 9px 10px; background: #fff; }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus {
  outline: none; border-bottom-color: var(--coral);
}
.cfield textarea { resize: vertical; }

.creport { margin-bottom: 64px; }

/* --------------------------------------------------------------------------
   Responsive — this is a working tool, so tables scroll rather than reflow
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .cbar { padding: 12px 24px; }
  .cmain { padding: 40px 24px 90px; }
  .cstats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .cstat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 920px) {
  .cbar { gap: 14px; row-gap: 12px; }
  .cbar__left, .cbar__right { gap: 16px; flex-wrap: wrap; }
  .cbar__divider { display: none; }
  .cbar__nav { gap: 16px; order: 3; width: 100%; }
  .cbar__date { display: none; }

  .ch1 { font-size: 30px; }
  .cstats { grid-template-columns: 1fr 1fr; padding: 20px; }
  .cstat { padding: 0 14px; }
  .cstat__value { font-size: 26px; }

  /* Keep the columns intact and let the table scroll inside itself. */
  .ctable { display: block; overflow-x: auto; white-space: nowrap; }
  .ctable__name { font-size: 17px; }

  .cform { padding: 28px 20px; }
  .cform__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* --------------------------------------------------------------------------
   Profile editor modal
   -------------------------------------------------------------------------- */

.cmodal {
  width: min(820px, calc(100vw - 40px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: #FDFBF7;
  color: var(--marine);
  overflow: hidden;
}
.cmodal::backdrop { background: rgba(18, 36, 46, .72); }

.cmodal:not([open]) { display: none; }
.cmodal.is-open {
  display: block;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 800;
  box-shadow: 0 30px 90px rgba(18, 36, 46, .4);
}

html.cmodal-open { overflow: hidden; }

.cmodal__inner {
  max-height: min(88vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px 46px 40px;
  position: relative;
}
.cmodal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: 0;
  font-size: 28px; line-height: 1;
  color: var(--taupe);
  cursor: pointer;
  padding: 6px 10px;
  z-index: 2;
}
.cmodal__close:hover { color: var(--coral); }
.cmodal .ch2 { margin-bottom: 26px; padding-right: 40px; }

/* Inside the modal the form is the panel — drop the card treatment. */
.cmodal .cform { max-width: none; background: transparent; padding: 0; margin-top: 0; }

/* Long property lists shouldn't stretch the table */
.ctable__props { max-width: 380px; white-space: normal; }
.ctable__flag { color: var(--coral); }

@media (max-width: 920px) {
  .cmodal {
    width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%;
    border: 0; border-radius: 0; margin: 0;
  }
  .cmodal__inner { max-height: 100vh; padding: 56px 20px 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cmodal[open] { animation: cmodalIn .3s var(--ease); }
  @keyframes cmodalIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
  .cmodal.is-open { animation: none; }
}

/* Checkbox rows inside concierge forms */
.cfield--check { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.cfield--check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--stone); border-radius: 0;
  background: transparent; cursor: pointer;
  flex: 0 0 auto; position: relative;
}
.cfield--check input[type="checkbox"]:checked { background: var(--marine); border-color: var(--marine); }
.cfield--check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--shell); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cfield--check label {
  font-family: var(--sans); font-size: 15px; color: var(--marine);
  margin: 0; letter-spacing: 0; text-transform: none;
  cursor: pointer;
}
