/* Business website — extends /assets/admin/admin.css (same tokens and components). */

.nav .brand span { color: var(--gold); }
.nav a.locked { opacity: .5; }

.banner {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--amber);
}
.banner.good { border-inline-start-color: var(--green); }
.banner.bad { border-inline-start-color: var(--red); }
.banner h2 { margin-bottom: 4px; }
.banner ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--text-2); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-size: clamp(17px, 4.6vw, 22px); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .l { color: var(--text-3); font-size: 13px; }
.kpi .chg { font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .chg.up { color: var(--teal); }
.kpi .chg.down { color: var(--red); }
.kpi .chg span:last-child { color: var(--text-3); }
.section-title { font-size: 16px; margin: 4px 0 10px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(44px, 1fr); gap: 8px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 10px; margin-bottom: 26px; overflow-x: auto; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-val { font-size: 11px; line-height: 14px; color: var(--text-3); white-space: nowrap; min-height: 14px; font-variant-numeric: tabular-nums; }
.bar-track { height: 140px; width: 100%; max-width: 46px; display: flex; align-items: flex-end; padding-top: 4px; }
@media (max-width: 640px) { .bar-val { display: none; } .bar-track { height: 120px; } }
.bar { width: 100%; min-height: 2px; background: var(--teal); border-radius: 6px 6px 2px 2px; }
.bar-label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.kpi.attention { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }

.list-rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list-rows > a, .list-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list-rows > :last-child { border-bottom: 0; }
.list-rows > a:hover { background: #F5F2EA; }

/* Calendar: the month at a glance */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h2 { min-width: 170px; }
.cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: var(--line);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.cal .dow { background: #FBFAF6; padding: 8px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.cal .day { background: var(--surface); min-height: 108px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.cal .day.out { background: #F5F2EA; }
.cal .day.out .d { color: var(--line-strong); }
.cal .day.closed { background: repeating-linear-gradient(135deg, #F5F2EA 0 6px, #F8F6F1 6px 12px); }
.cal .day.today .d { background: var(--teal); color: #fff; border-radius: 10px; padding: 0 7px; }
.cal .d { align-self: flex-start; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 20px; }
.cal .ev {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--teal-wash);
    color: var(--teal-ink);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal .ev.pending { background: var(--amber-wash); color: #6B4A12; }
.cal .ev.completed { background: #EFEBE2; color: var(--text-2); }
.cal .ev.block { background: var(--ink); color: #fff; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; }
@media (max-width: 760px) {
    .cal .dow { font-size: 11px; padding: 6px 2px; }
    .cal .day { min-height: 64px; padding: 4px 3px; }
    .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
}

.hours-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-row .ranges { display: grid; gap: 6px; }
.hours-row .range { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hours-row .input[type=time] { width: 136px; }

/* Portfolio grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile .media { aspect-ratio: 1; background: var(--line); position: relative; }
.tile .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .media .video { display: grid; place-items: center; height: 100%; color: var(--text-2); }
.tile .badges { position: absolute; top: 6px; inset-inline-start: 6px; display: flex; gap: 4px; }
.tile .tools { display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 4px; flex-wrap: wrap; }
.tile .tools > span { display: flex; align-items: center; gap: 2px; }
.dropzone {
    display: block;
    cursor: pointer;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    color: var(--text-2);
    background: var(--surface);
    margin-bottom: 16px;
}
.dropzone.over { border-color: var(--teal); background: var(--teal-wash); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: var(--teal); transition: width .2s; }

/* Messages */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 560px; overflow: hidden; }
.chat .inbox { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.chat .inbox a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.chat .inbox a[aria-current="page"] { background: var(--teal-wash); }
.chat .inbox .who { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.chat .inbox .prev { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .thread { display: flex; flex-direction: column; min-width: 0; }
.chat .thread header { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; background: #FBFAF6; }
.bubble { max-width: 72%; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--teal); border-color: var(--teal); color: #fff; }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form textarea { flex: 1; min-height: 40px; height: 40px; }
@media (max-width: 760px) {
    .chat { grid-template-columns: 1fr; }
    .chat .inbox { max-height: 220px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan .price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: 8px; align-self: flex-start; }
.status-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

#payment-element { margin: 12px 0 16px; min-height: 40px; }
.locked-page { text-align: start; }
.logo-box { width: 84px; height: 84px; border-radius: 50%; background: var(--line); overflow: hidden; flex: none; }
.cover-box { aspect-ratio: 16 / 7; border-radius: var(--radius); background: var(--line); overflow: hidden; }
.logo-box img, .cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-legend i { border: 1px solid var(--line-strong); }

/* Team, calendar sync, delivery */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.list > li { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.bad { color: var(--red); }
