@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
:root{font-family:Montserrat,system-ui,sans-serif;color:#f1efeA;background:#111;--bg:#111;--card:#1c1c1c;--muted:#a9a49a;--line:#2d2d2d;--accent:#c8b79c}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh;color:#f1efeA}button,input{font:inherit}button{color:inherit;border:0;cursor:pointer}#app{max-width:760px;margin:0 auto;padding:20px 16px 100px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--muted);font-weight:700}h1,h2{margin:.25rem 0 0;letter-spacing:-.03em}.topbar h1{font-size:27px}.page-head{display:flex;gap:12px;align-items:center;margin-bottom:22px}.page-head h2{font-size:25px}.icon-btn,.back{width:42px;height:42px;border-radius:14px;background:var(--card);font-size:22px}.section-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin:20px 0 10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.stat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:15px;text-align:left}.stat span{display:block;font-size:25px;font-weight:700}.stat small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.danger{border-color:#5a3333}.warning{border-color:#5a4e2e}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.menu-card{position:relative;min-height:92px;padding:15px;text-align:left;border-radius:18px;background:var(--card);border:1px solid var(--line)}.menu-card b{display:block;font-size:23px;margin-bottom:10px}.menu-card span{font-size:14px;font-weight:600}.menu-card em{position:absolute;right:14px;top:15px;font-style:normal;color:var(--muted);font-size:12px}.hint,.empty,.placeholder{margin-top:18px;background:#171717;border:1px solid var(--line);border-radius:18px;padding:16px}.hint strong{display:block;font-size:13px}.hint span{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:5px}.search{width:100%;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:13px 15px;color:#fff;outline:none;margin-bottom:12px}.list{display:grid;gap:8px}.client{width:100%;background:var(--card);border:1px solid var(--line);border-radius:17px;padding:14px;text-align:left}.client .name{font-size:15px;font-weight:700}.client .meta{color:var(--muted);font-size:11px;margin-top:6px;line-height:1.5}.badge{display:inline-block;margin-top:9px;border-radius:999px;padding:5px 8px;background:#272727;color:#d6d0c6;font-size:9px}.card-block{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:10px}.card-label{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px}.card-value{font-size:15px;line-height:1.5}.money{font-size:23px;font-weight:700}.task{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.task:last-child{border-bottom:0}.task small{color:var(--muted)}.screen{display:none}.screen.active{display:block}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);display:grid;grid-template-columns:repeat(3,1fr);padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(17,17,17,.95);border-top:1px solid var(--line);backdrop-filter:blur(12px)}.nav{background:none;color:var(--muted);font-size:17px;padding:7px}.nav span{display:block;font-size:9px;margin-top:3px}.nav.active{color:var(--accent)}.placeholder h2{margin:0}.placeholder p,.empty{color:var(--muted);font-size:12px;line-height:1.5}@media(min-width:700px){#app{padding-left:24px;padding-right:24px}.bottom-nav{border-radius:18px 18px 0 0}}
/* =========================================
   CARD ACTIONS
========================================= */

.card-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.small-action {
    width: 42px;
    height: 42px;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #1c1c1c;
    color: #f1efeA;
    font-size: 17px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.small-action:active {
    transform: scale(.96);
}

.small-action:hover {
    background: #252525;
    border-color: #c8b79c;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-button {
    border: 0;
    background: transparent;
    color: #a9a49a;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 0;
    cursor: pointer;
}

.back-button:hover {
    color: #f1efeA;
}


/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
}


/* =========================================
   MODAL SHEET
========================================= */

.modal-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    max-height: 92vh;
    overflow-y: auto;

    background: #181818;
    border-top: 1px solid #2d2d2d;
    border-radius: 22px 22px 0 0;

    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));

    box-shadow: 0 -15px 50px rgba(0, 0, 0, .45);
}

.modal-small {
    max-height: 60vh;
}


/* =========================================
   MODAL HEADER
========================================= */

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 4px 0 0;
    font-size: 23px;
    line-height: 1.1;
}

.modal-close {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border: 1px solid #2d2d2d;
    border-radius: 12px;

    background: #222;
    color: #a9a49a;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.modal-close:active {
    transform: scale(.96);
}


/* =========================================
   FORM
========================================= */

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field > span {
    color: #a9a49a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #303030;
    border-radius: 12px;

    background: #222;
    color: #f1efea;

    font-family: inherit;
    font-size: 16px;

    padding: 13px 14px;

    outline: none;

    transition:
        border-color .15s ease,
        background .15s ease;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #c8b79c;
    background: #252525;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #666;
}


/* =========================================
   SELECT
========================================= */

.field select {
    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #a9a49a 50%),
        linear-gradient(135deg, #a9a49a 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;

    padding-right: 42px;
}


/* =========================================
   MODAL ACTIONS
========================================= */

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 48px;

    border-radius: 13px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.primary-button {
    border: 1px solid #c8b79c;
    background: #c8b79c;
    color: #171717;
}

.primary-button:active {
    transform: scale(.985);
}

.secondary-button {
    border: 1px solid #303030;
    background: #222;
    color: #a9a49a;
}

.secondary-button:active {
    transform: scale(.985);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .modal-sheet {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-header h2 {
        font-size: 21px;
    }

}
/* =====================================================
   MINI APP — NEW INDEX COMPATIBILITY
   ===================================================== */

* {
    box-sizing: border-box;
}

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

body {
    background: #111111;
    color: #f1efea;
    font-family: Montserrat, Arial, sans-serif;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================
   APP
========================= */

.app {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 18px 16px 110px;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow {
    color: #a9a49a;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

h1 {
    margin: 0;
    color: #f1efea;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
}

h2 {
    color: #f1efea;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #1c1c1c;
    color: #c8b79c;
    font-size: 22px;
    cursor: pointer;
}

.icon-button:active {
    transform: scale(.96);
}


/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.stat-card {
    min-width: 0;
    min-height: 94px;

    border: 1px solid #2d2d2d;
    border-radius: 15px;

    background: #1b1b1b;
    color: #f1efea;

    padding: 14px 10px;

    text-align: left;
    cursor: pointer;
}

.stat-card:active,
.dashboard-card:active {
    transform: scale(.985);
}

.stat-number {
    display: block;
    margin-bottom: 7px;

    color: #c8b79c;
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
}

.stat-label {
    display: block;
    color: #a9a49a;
    font-size: 11px;
    line-height: 1.25;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    margin: 0 0 12px;
    color: #a9a49a;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 76px;

    padding: 14px;

    border: 1px solid #2d2d2d;
    border-radius: 15px;

    background: #1b1b1b;
    color: #f1efea;

    text-align: left;
    cursor: pointer;
}

.dashboard-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #242424;
    color: #c8b79c;

    font-size: 18px;
}

.dashboard-card strong {
    display: block;
    margin-bottom: 4px;

    color: #f1efea;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-card span {
    display: block;

    color: #77736c;
    font-size: 11px;
}


/* =========================
   SEARCH
========================= */

.search-wrap {
    margin-bottom: 15px;
}

.search {
    width: 100%;
    height: 48px;

    border: 1px solid #2d2d2d;
    border-radius: 13px;

    background: #1b1b1b;
    color: #f1efea;

    padding: 0 15px;

    outline: none;
    font-size: 15px;
}

.search:focus {
    border-color: #c8b79c;
}

.search::placeholder {
    color: #68645e;
}


/* =========================
   CLIENTS
========================= */

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.client {
    position: relative;

    display: block;
    width: 100%;

    padding: 16px;

    border: 1px solid #2d2d2d;
    border-radius: 15px;

    background: #1b1b1b;
    color: #f1efea;

    text-align: left;
    cursor: pointer;
}

.client:active {
    transform: scale(.99);
}

.client .name {
    margin-bottom: 7px;

    color: #f1efea;
    font-size: 17px;
    font-weight: 600;
}

.client .meta {
    color: #8b877f;
    font-size: 12px;
    line-height: 1.55;
}

.badge {
    display: inline-block;

    margin-top: 10px;
    padding: 5px 8px;

    border: 1px solid #3a3732;
    border-radius: 7px;

    background: #22201d;
    color: #c8b79c;

    font-size: 10px;
}


/* =========================
   CARD
========================= */

#card > h1 {
    margin-bottom: 18px;
}

.card-block {
    margin-bottom: 10px;
    padding: 17px;

    border: 1px solid #2d2d2d;
    border-radius: 15px;

    background: #1b1b1b;
}

.card-label {
    margin-bottom: 9px;

    color: #77736c;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.card-value {
    color: #f1efea;
    font-size: 14px;
    line-height: 1.55;
}

.money {
    color: #c8b79c;
    font-size: 23px;
    font-weight: 700;
}

.meta {
    color: #8b877f;
    font-size: 12px;
    line-height: 1.55;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px solid #292929;

    color: #e8e5df;
    font-size: 13px;
}

.task:last-child {
    border-bottom: 0;
}

.task small {
    flex-shrink: 0;
    color: #77736c;
}


/* =========================
   CARD ACTIONS
========================= */

.card-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.small-action {
    width: 42px;
    height: 42px;

    border: 1px solid #2d2d2d;
    border-radius: 12px;

    background: #1c1c1c;
    color: #f1efea;

    font-size: 17px;
    cursor: pointer;
}

.small-action:hover {
    border-color: #c8b79c;
    background: #242424;
}

.small-action:active {
    transform: scale(.96);
}

.back-button {
    border: 0;
    background: transparent;
    color: #a9a49a;

    padding: 8px 0;

    font-size: 13px;
    cursor: pointer;
}


/* =========================
   PLACEHOLDERS
========================= */

.placeholder {
    margin-top: 20px;
    padding: 30px 20px;

    border: 1px solid #2d2d2d;
    border-radius: 17px;

    background: #1b1b1b;

    text-align: center;
}

.placeholder-icon {
    margin-bottom: 14px;

    color: #c8b79c;
    font-size: 32px;
}

.placeholder h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.placeholder p {
    max-width: 430px;
    margin: 0 auto;

    color: #77736c;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================
   MODALS
========================= */

.modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
}

.modal-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    max-width: 760px;
    max-height: 92vh;

    margin: 0 auto;

    overflow-y: auto;

    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));

    border-top: 1px solid #303030;
    border-radius: 22px 22px 0 0;

    background: #181818;

    box-shadow: 0 -15px 50px rgba(0, 0, 0, .45);
}

.modal-small {
    max-height: 60vh;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 4px 0 0;

    color: #f1efea;
    font-size: 22px;
}

.modal-close {
    width: 40px;
    height: 40px;

    border: 1px solid #303030;
    border-radius: 12px;

    background: #222;
    color: #a9a49a;

    font-size: 24px;
    cursor: pointer;
}


/* =========================
   FORM
========================= */

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field > span {
    color: #8b877f;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
    width: 100%;

    border: 1px solid #303030;
    border-radius: 12px;

    background: #222;
    color: #f1efea;

    padding: 13px 14px;

    outline: none;

    font-size: 15px;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #c8b79c;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #65615b;
}


/* =========================
   MODAL BUTTONS
========================= */

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-top: 24px;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 48px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.primary-button {
    border: 1px solid #c8b79c;
    background: #c8b79c;
    color: #171717;
}

.secondary-button {
    border: 1px solid #303030;
    background: #222;
    color: #a9a49a;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .app {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 27px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 601px) {

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}
/* =========================================
   FINANCE
========================================= */

.finance-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.finance-filter {
  flex: 0 0 auto;
  border: 1px solid var(--border, #383838);
  background: #1b1b1b;
  color: #aaa;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.finance-filter.active {
  background: #e8e5df;
  color: #111;
  border-color: #e8e5df;
}

.finance-client {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  position: relative;
}

.finance-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 10px;
}

.finance-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #777;
  font-size: 12px;
}

.finance-row strong {
  color: #e8e5df;
  font-size: 15px;
  font-weight: 500;
}

#financeStats {
  margin-bottom: 18px;
}

#financeStats .dashboard-card {
  min-height: 120px;
}

#financeStats .money {
  margin-top: 8px;
  font-size: 24px;
}

@media (max-width: 600px) {

  .finance-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  #financeStats {
    grid-template-columns: 1fr;
  }

}


/* =========================================
   FINANCE STATS — DESKTOP LAYOUT
========================================= */

#financeStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

#financeStats .dashboard-card {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#financeStats .card-label {
  margin-bottom: 6px;
}

#financeStats .money {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  white-space: nowrap;
}

#financeStats .meta {
  margin-top: 5px;
}

@media (max-width: 700px) {

  #financeStats {
    grid-template-columns: 1fr;
  }

}


/* =========================================
   NEW CLIENT MODAL
========================================= */

.new-client-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.new-client-modal.open {
  display: block;
}

.new-client-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
}

.new-client-card {
  position: relative;
  z-index: 2;

  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);

  margin: 16px auto;

  overflow-y: auto;

  background: #111111;
  color: #f1efeA;

  border: 1px solid rgba(241, 239, 234, .12);
  border-radius: 18px;

  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.new-client-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 24px 24px 18px;

  border-bottom: 1px solid rgba(241, 239, 234, .08);
}

.new-client-head h2 {
  margin: 4px 0 0;

  font-size: 26px;
  line-height: 1.1;
}

.new-client-head .eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;

  opacity: .5;
}

.new-client-close {
  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 50%;

  background: rgba(241, 239, 234, .08);
  color: #f1efeA;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.new-client-card form {
  padding: 24px;
}

.new-client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.new-client-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;

  margin-bottom: 18px;

  font-size: 12px;
  line-height: 1.3;

  color: rgba(241, 239, 234, .62);
}

.new-client-card input,
.new-client-card select,
.new-client-card textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 13px;

  border: 1px solid rgba(241, 239, 234, .12);
  border-radius: 10px;

  background: rgba(241, 239, 234, .045);
  color: #f1efeA;

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color .15s ease,
    background .15s ease;
}

.new-client-card input:focus,
.new-client-card select:focus,
.new-client-card textarea:focus {
  border-color: rgba(200, 183, 156, .7);
  background: rgba(241, 239, 234, .07);
}

.new-client-card textarea {
  min-height: 100px;
  resize: vertical;
}

.new-client-card input::placeholder,
.new-client-card textarea::placeholder {
  color: rgba(241, 239, 234, .28);
}

.new-client-card select option {
  background: #111111;
  color: #f1efeA;
}

.new-client-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 8px;
  padding-top: 18px;

  border-top: 1px solid rgba(241, 239, 234, .08);
}

.new-client-cancel,
.new-client-submit {
  min-height: 42px;

  padding: 0 18px;

  border-radius: 10px;

  font: inherit;
  font-size: 13px;

  cursor: pointer;
}

.new-client-cancel {
  border: 1px solid rgba(241, 239, 234, .12);

  background: transparent;
  color: #f1efeA;
}

.new-client-submit {
  border: 1px solid #c8b79c;

  background: #c8b79c;
  color: #111111;

  font-weight: 600;
}

.new-client-btn {
  min-height: 38px;

  padding: 0 14px;

  border: 1px solid rgba(200, 183, 156, .55);
  border-radius: 10px;

  background: transparent;
  color: #c8b79c;

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.new-client-btn:hover {
  background: rgba(200, 183, 156, .08);
}

@media (max-width: 640px) {

  .new-client-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);

    margin: 10px auto;

    border-radius: 15px;
  }

  .new-client-head {
    padding: 20px 18px 16px;
  }

  .new-client-card form {
    padding: 18px;
  }

  .new-client-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .new-client-actions {
    flex-direction: column-reverse;
  }

  .new-client-cancel,
  .new-client-submit {
    width: 100%;
  }

}


/* =========================================
   CALENDAR — MONTH GRID
========================================= */

.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.calendar-head h1 {
  margin: 4px 0 0;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-month {
  min-width: 150px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.cal-nav-btn,
.cal-today-btn {
  border: 1px solid #303030;
  background: #181818;
  color: #f1efeA;
  border-radius: 9px;
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
  transition: .18s ease;
}

.cal-nav-btn {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.cal-today-btn {
  margin-left: 4px;
  font-size: 11px;
}

.cal-nav-btn:hover,
.cal-today-btn:hover {
  border-color: rgba(216, 194, 156, .45);
  background: #202020;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #292929;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #171717;
}

.calendar-weekdays > div {
  padding: 11px 12px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-right: 1px solid #292929;
}

.calendar-weekdays > div:last-child {
  border-right: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid #292929;
  border-top: 1px solid #292929;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #111111;
}

.cal-day {
  position: relative;
  min-height: 118px;
  padding: 10px;
  background: #141414;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  transition: background .18s ease;
}

.cal-day:hover {
  background: #181818;
}

.cal-day.is-other {
  background: #101010;
}

.cal-day.is-other .cal-day-number {
  color: #454545;
}

.cal-day.is-today {
  background: #181713;
}

.cal-day.is-today .cal-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  margin: -2px 0 4px -2px;
  border-radius: 50%;
  background: #c8b79c;
  color: #111;
  font-weight: 700;
}

.cal-day-number {
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.cal-event {
  display: block;
  width: 100%;
  margin: 3px 0 0;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.25;
}

button.cal-event {
  cursor: pointer;
}

.cal-event.wedding {
  background: rgba(200, 183, 156, .14);
  color: #d8c29c;
}

.cal-event.wedding:hover {
  background: rgba(200, 183, 156, .24);
}

.cal-event.task {
  background: rgba(255, 255, 255, .055);
  color: #aaa;
}

.cal-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: middle;
  background: #c8b79c;
}

.cal-event.task .cal-dot {
  background: #777;
}

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: #777;
  font-size: 10px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.wedding-dot {
  background: #c8b79c;
}

.task-dot {
  background: #777;
}

/* Mobile */

@media (max-width: 700px) {
  .calendar-head {
    display: block;
  }

  .calendar-nav {
    margin-top: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .calendar-month {
    flex: 1;
    min-width: 120px;
  }

  .cal-today-btn {
    margin-left: 0;
  }

  .calendar-weekdays > div {
    padding: 9px 4px;
    text-align: center;
    font-size: 9px;
  }

  .cal-day {
    min-height: 82px;
    padding: 6px;
  }

  .cal-day-number {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .cal-event {
    padding: 4px;
    font-size: 8px;
  }

  .cal-event .cal-dot {
    display: none;
  }

  .calendar-legend {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .calendar-nav {
    gap: 5px;
  }

  .calendar-month {
    font-size: 13px;
  }

  .cal-nav-btn {
    width: 32px;
  }

  .cal-today-btn {
    padding: 0 8px;
  }

  .cal-day {
    min-height: 68px;
    padding: 5px 4px;
  }

  .cal-event {
    padding: 3px;
    font-size: 7px;
    border-radius: 4px;
  }
}

.calendar-task-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.calendar-task-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(3px);
}

.calendar-task-modal {
  position: relative;
  width: min(460px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid #303030;
  border-radius: 16px;
  background: #171717;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

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

.calendar-task-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.cal-dialog-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1b1b1b;
  color: #aaa;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cal-dialog-close:hover {
  border-color: rgba(216,194,156,.45);
  color: #f1efeA;
}

.calendar-task-modal .task-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.calendar-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .calendar-task-modal {
    width: calc(100% - 20px);
    margin-top: 8vh;
    padding: 18px;
  }
}

/* =========================
   QUESTIONNAIRES
========================= */

.questionnaire-card {
    width: 100%;
    display: block;

    padding: 16px;

    border: 1px solid #2d2d2d;
    border-radius: 15px;

    background: #1b1b1b;
    color: #f1efea;

    text-align: left;
    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.questionnaire-card:hover {
    background: #202020;
    border-color: #403d38;
}

.questionnaire-card:active {
    transform: scale(.99);
}

.questionnaire-card strong {
    display: block;

    margin-bottom: 8px;

    color: #f1efea;
    font-size: 15px;
    font-weight: 600;
}

.questionnaire-progress {
    color: #a9a49a;
    font-size: 11px;
    line-height: 1.5;
}

.questionnaire-progress b {
    color: #c8b79c;
}

.questionnaire-status {
    margin-top: 8px;

    color: #77736c;
    font-size: 10px;
}

/* DETAIL */

.questionnaire-meta {
    margin-bottom: 18px;
}

.questionnaire-participants {
    display: grid;
    gap: 8px;
}

.questionnaire-participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    background: #1b1b1b;
    border: 1px solid #2d2d2d;
    border-radius: 15px;
}

.questionnaire-participant strong {
    font-size: 13px;
}

.questionnaire-participant span {
    color: #c8b79c;
    font-size: 10px;
}

.questionnaire-questions {
    display: grid;
    gap: 10px;
}

.questionnaire-question {
    padding: 16px;

    background: #1b1b1b;
    border: 1px solid #2d2d2d;
    border-radius: 18px;
}

.questionnaire-question-number {
    margin-bottom: 7px;

    color: #c8b79c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.questionnaire-question h3 {
    margin: 0 0 15px;

    color: #f1efea;
    font-size: 14px;
    line-height: 1.45;
}

.questionnaire-answers {
    display: grid;
    gap: 8px;
}

.questionnaire-answer {
    padding: 11px 12px;

    background: #151515;
    border: 1px solid #252525;
    border-radius: 12px;
}

.questionnaire-answer-name {
    margin-bottom: 5px;

    color: #a9a49a;
    font-size: 10px;
    font-weight: 600;
}

.questionnaire-answer-text {
    color: #f1efea;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.questionnaire-answer-text .muted {
    color: #5f5b55;
}

.back-button {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;
    padding: 0;

    background: none;
    color: #a9a49a;

    font-size: 11px;
}

.back-button:hover {
    color: #c8b79c;
}