:root {
  --ink: #17142f;
  --muted: #7d7a91;
  --bg: #f9f8ff;
  --panel: #fff;
  --line: #e5e2ed;
  --brand: #6c4ff8;
  --brand2: #5638e6;
  --deep: #21184f;
  --accent: #6c4ff8;
  --pink: #ffe3e8;
  --lilac: #eae5ff;
  --mint: #dcf7e9;
  --peach: #ffe6d7;
  --shadow: none;
}

html { color-scheme: light; background: #efecf6; }
body { margin: 0; padding: 0 0 98px; background: #efecf6; color: var(--ink); }
.authenticated .shell { padding-top: 7.4rem; }
.authenticated .page-head .back { display: none; }
.app-topbar { position: fixed; z-index: 40; top: 0; left: 50%; width: min(100%,760px); transform: translateX(-50%); padding: max(1rem,env(safe-area-inset-top)) 1.25rem .75rem; background: linear-gradient(to bottom,var(--bg) 76%,rgba(249,248,255,0)); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-logo, .topbar-back { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.topbar-logo img { width: 38px; height: 38px; object-fit: contain; }
.topbar-back { color: var(--ink); font-size: 1.25rem; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.topbar-actions form { margin: 0; }
.topbar-actions .icon-button { position: relative; }
.topbar-actions .icon-button em { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; color: #fff; background: #ed4e69; font-size: .6rem; font-style: normal; line-height: 18px; }
.logout-button { color: #ed3f5d; }
.fi-br-task-checklist::before { content: "\e9b2"; }
.whatsapp-icon { display: block; width: 18px; height: 18px; object-fit: contain; }
.button .fi, .text-link .fi { margin-left: .25rem; vertical-align: -.08em; }
.shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 2rem 1.25rem 7rem; background: var(--bg); }
.auth-shell { padding-bottom: 2rem; }
.top { display: none; }

.page-head { align-items: center; margin: .2rem 0 1.55rem; }
.page-head h1, .login h1 { margin: .12rem 0; color: var(--ink); font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 850; letter-spacing: -.045em; }
.page-head .back { display: inline-grid; place-items: center; min-width: 50px; min-height: 50px; margin: 0 0 .75rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.eyebrow { color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.muted, .meta, .fine { color: var(--muted); }
section > h2, .panel > h2 { margin: 1.8rem 0 .9rem; font-size: 1.35rem; letter-spacing: -.025em; }

.panel, .card { border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: none; }
.panel { padding: 1.2rem; }
.card { position: relative; padding: 1.25rem; overflow: hidden; }
.card::before { display: none; }
.task-card::before { display: block; content: ""; position: absolute; inset: 1.25rem auto 1.25rem 0; width: 5px; border-radius: 5px; background: var(--brand); }
.task-card:has(.priority.urgent)::before { background: #ff6c8a; }
.task-card:has(.badge.submitted)::before, .task-card:has(.badge.completed)::before { background: #20ad78; }
.task-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem; padding-left: 1.5rem; }
.task-copy { min-width: 0; }
.task-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--muted); font-size: .76rem; }
.task-due { display: grid; align-content: center; text-align: right; white-space: nowrap; }
.task-due strong { font-size: .86rem; }
.task-due span { color: var(--muted); font-size: .74rem; }
.task-card > .badge { grid-column: 1 / -1; justify-self: start; }
.card h3 { margin: .35rem 0; color: var(--ink); font-size: 1.08rem; letter-spacing: -.015em; }
.card-top { color: var(--muted); font-size: .72rem; }
.card-bottom { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid #eeebf3; }
.code { color: var(--muted); }
.badge, .priority { padding: .38rem .68rem; border-radius: 12px; font-size: .7rem; }
.priority.normal, .badge.open { color: #6749ee; background: #e9e4ff; }
.badge.in_progress { color: #6749ee; background: #e9e4ff; }
.priority.high, .badge.on_hold { color: #856316; background: #fff0bf; }
.priority.urgent, .badge.lost, .badge.revision_needed { color: #d94762; background: #ffe1e8; }
.badge.submitted, .badge.completed, .badge.converted, .badge.active { color: #149b6a; background: #d8f5e8; }

.button { min-height: 48px; padding: .78rem 1.05rem; border-radius: 16px; background: var(--brand); box-shadow: none; }
.button:hover { background: var(--brand2); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.secondary:hover { background: #f2effb; }
.button.small { min-height: 38px; border-radius: 12px; }
.text-link, .back { color: var(--brand); }

input, select, textarea { min-height: 54px; padding: .9rem 1rem; border-color: var(--line); border-radius: 18px; background: #fff; }
textarea { min-height: 126px; }
input:focus, select:focus, textarea:focus { outline-color: #c8bbff; border-color: var(--brand); }
.form-grid { gap: 1.15rem; }
.form-grid label, .stack label, .inline-form label, legend { color: var(--ink); font-size: .76rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.segmented, .check-grid { padding: .35rem; border-radius: 16px; background: #efedf5; }
.segmented span, .check-grid span { border: 0; border-radius: 12px; }
.segmented input:checked + span, .check-grid input:checked + span { color: var(--ink); background: #fff; }
.app-form { padding-bottom: 1.2rem; border: 0; background: transparent; }
.app-form .form-submit { width: 100%; margin-top: .6rem; font-size: 1rem; }
body:has(.app-form) .nav { display: none; }
body:has(.app-form) { padding-bottom: 0; }

.filters { padding: .45rem; background: #efedf5; border: 0; }
.view-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: .3rem; padding: .38rem; margin-bottom: 1.35rem; border-radius: 18px; background: #efedf5; }
.view-tabs a { padding: .8rem .35rem; border-radius: 14px; color: #8b889a; text-align: center; font-size: .78rem; font-weight: 800; }
.view-tabs a.active { color: var(--ink); background: #fff; }
.lead-tabs { grid-template-columns: repeat(4,1fr); }
.filter-more { margin-bottom: 1.2rem; }
.filter-more summary { color: var(--brand); text-align: right; }
.date-group { margin: 1.25rem 0 1.7rem; }
.date-group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.date-group-head h2 { margin: 0; font-size: 1.42rem; }
.date-group-head span { color: var(--brand); font-weight: 800; }

.stats { grid-template-columns: repeat(3,1fr); gap: .65rem; }
.stats div { min-height: 100px; padding: 1rem .85rem; border: 0; border-radius: 20px; box-shadow: none; }
.stats div:nth-child(3n+1) { background: var(--pink); }
.stats div:nth-child(3n+2) { background: var(--lilac); }
.stats div:nth-child(3n+3) { background: var(--mint); }
.stats div:first-child { color: var(--ink); background: var(--pink); }
.stats div:first-child span { color: #625e70; }
.stats strong { font-size: 1.7rem; }

.app-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.app-brand-main { display: flex; align-items: center; gap: .75rem; }
.app-brand img { width: 48px; height: 48px; padding: 8px; border-radius: 16px; background: var(--brand); filter: brightness(0) invert(1); }
.app-brand b { font-size: 1.2rem; }
.icon-button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.greeting h1 { margin: .2rem 0 1.2rem; font-size: clamp(2.2rem,10vw,3.15rem); line-height: 1.03; letter-spacing: -.05em; }
.attention-card { margin: 1rem 0 .75rem; padding: 1.45rem; border-radius: 28px; color: #fff; background: radial-gradient(circle at 100% 0,#d65d93 0,transparent 42%),linear-gradient(135deg,#21184f,#382477); }
.attention-card .eyebrow { color: #ddd5ff; text-transform: uppercase; letter-spacing: .06em; }
.attention-card strong { display: block; margin: 1rem 0 .4rem; font-size: 2.65rem; letter-spacing: -.04em; }
.attention-card p { color: #d8d2ed; }
.attention-card .button { float: right; min-height: 42px; color: var(--deep); background: #fff; }
.attention-card::after { display: block; content: ""; clear: both; }

.lead-card { display: grid; gap: .85rem; }
.lead-title-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.lead-title-row h3 { min-width: 0; margin: 0; }
.lead-title-row .badge { flex: 0 0 auto; }
.overdue-banner { display: flex; gap: .85rem; align-items: center; margin-bottom: 1.35rem; padding: 1rem; border: 1px solid #ffc1cc; border-radius: 20px; background: var(--pink); }
.overdue-banner b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: #dc4864; font-size: 1.3rem; }
.overdue-banner span { flex: 1; }
.overdue-banner small { display: block; margin-top: .2rem; color: var(--muted); }

.profile-head { text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto .85rem; border-radius: 28px; background: var(--peach); font-size: 1.65rem; font-weight: 850; }
.profile-head h1 { margin: 0; font-size: 2rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.4rem 0; }
.info-block { padding: 1rem; border-radius: 20px; background: var(--lilac); }
.info-block:nth-child(2) { background: var(--peach); }
.info-block span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.info-block strong { display: block; margin-top: .5rem; }

.project-page-head { align-items: center; }
.project-tabs { grid-template-columns: repeat(3,1fr); }
.project-list { display: grid; gap: .72rem; }
.project-row { overflow: hidden; border: 1px solid var(--line); border-left: 5px solid #7454f5; border-radius: 20px; background: #fff; }
.project-row.status-completed { border-left-color: #20aa74; background: #f3fbf7; }
.project-row > summary { display: grid; grid-template-columns: 12px minmax(0,1fr) 24px; gap: .8rem; align-items: center; min-height: 78px; padding: 1rem; list-style: none; cursor: pointer; }
.project-row > summary::-webkit-details-marker { display: none; }
.project-status-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #7454f5; }
.status-completed .project-status-dot { background: #20aa74; }
.project-summary-copy { display: grid; gap: .22rem; min-width: 0; }
.project-summary-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-summary-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.project-expand-icon { color: var(--muted); transition: transform .18s ease; }
.project-row[open] .project-expand-icon { transform: rotate(180deg); }
.project-expanded { display: grid; gap: .9rem; padding: 1rem 1rem 1.1rem 2.8rem; border-top: 1px solid rgba(92,82,121,.12); }
.project-detail { display: grid; gap: .28rem; }
.project-detail span { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.project-detail strong { line-height: 1.45; }
.project-actions { display: flex; align-items: center; justify-content: space-between; }
.project-actions .badge.active { color: #6749ee; background: #e9e4ff; }
.project-form { margin-top: .4rem; }
.project-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.sticky-action { position: sticky; bottom: 100px; z-index: 5; margin-top: 1.3rem; padding: .65rem; border-radius: 20px; background: rgba(249,248,255,.92); backdrop-filter: blur(12px); }
.outcome-panel { margin-top: 1.5rem; }

.team-page-head { align-items: center; }
.team-list { gap: .85rem; }
.team-member-card { display: grid; gap: 1rem; padding: 1rem; overflow: hidden; }
.team-member-card.is-disabled { background: #f6f4f8; }
.team-member-main { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: .85rem; }
.team-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; color: #4e35c9; background: #e7e1ff; font-size: 1.05rem; font-weight: 900; letter-spacing: .02em; }
.team-member-card:nth-child(3n+2) .team-avatar { color: #8a4a32; background: #ffe4d5; }
.team-member-card:nth-child(3n+3) .team-avatar { color: #177557; background: #d9f5e8; }
.team-identity { min-width: 0; }
.team-identity h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.team-identity p { margin: .28rem 0 0; color: var(--muted); font-size: .78rem; }
.team-status { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 850; }
.team-status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.team-status.active { color: #14875f; background: #d9f5e8; }
.team-status.disabled { color: #8b6670; background: #eee8eb; }
.team-member-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.team-member-actions { display: flex; align-items: center; gap: .5rem; }
.team-phone { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; color: var(--muted); font-size: .84rem; font-weight: 750; }
.team-phone span { overflow: hidden; text-overflow: ellipsis; }
.team-phone i { color: var(--brand); }
.team-access-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .5rem .7rem; border: 0; border-radius: 11px; font-size: .75rem; font-weight: 850; cursor: pointer; }
.team-access-button.disable { color: #d94762; background: #ffe7ec; }
.team-access-button.enable { color: #14875f; background: #ddf6e9; }
.current-user { color: var(--muted); font-size: .72rem; font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.task-page-head { position: relative; align-items: center; }
.task-head-actions { display: flex; align-items: center; gap: .65rem; }
.task-filter { position: relative; }
.task-filter > summary { list-style: none; }
.task-filter > summary::-webkit-details-marker { display: none; }
.task-filter-panel { position: absolute; z-index: 12; top: 58px; right: 0; width: min(82vw,340px); padding: .8rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(32,24,79,.14); }
.task-list { display: grid; gap: .72rem; }
.task-row { overflow: hidden; border: 1px solid var(--line); border-left: 5px solid transparent; border-radius: 20px; background: #fff; }
.task-row.status-submitted, .compact-task.status-submitted { border-color: #b8d9fa; background: #deefff; }
.task-row.status-completed, .compact-task.status-completed { border-color: #b8ead4; background: #d9f7e8; }
.task-row.status-revision_needed, .compact-task.status-revision_needed { border-color: #f0d98c; background: #fff2bd; }
.task-row.priority-urgent, .compact-task.priority-urgent { border-left-color: #ed4e69; }
.task-row > summary { display: grid; grid-template-columns: 12px minmax(0,1fr) 24px; gap: .8rem; align-items: center; min-height: 76px; padding: 1rem; list-style: none; cursor: pointer; }
.task-row > summary::-webkit-details-marker { display: none; }
.task-summary-copy { display: grid; gap: .2rem; min-width: 0; }
.task-summary-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.task-summary-copy small { color: var(--muted); }
.task-status-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #c4c1cf; }
.status-submitted .task-status-dot { background: #3f8fe8; }
.status-completed .task-status-dot { background: #20aa74; }
.status-revision_needed .task-status-dot { background: #e2ad24; }
.task-expand-icon { color: var(--muted); transition: transform .18s ease; }
.task-row[open] .task-expand-icon { transform: rotate(180deg); }
.task-expanded { display: grid; min-width: 0; max-width: 100%; gap: 1rem; padding: 0 1rem 1rem 1rem; border-top: 1px solid rgba(92,82,121,.12); }
.task-description { min-width: 0; max-width: 100%; padding-top: 1rem; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55; }
.task-description p { margin: 0 0 .55rem; }
.task-description a { color: var(--brand); overflow-wrap: anywhere; word-break: break-all; text-decoration: underline; }
.task-id { display: block; }
.task-actions { display: flex; gap: .55rem; align-items: center; justify-content: flex-end; }
.icon-button.compact { width: 42px; height: 42px; border-radius: 13px; }
.complete-task { color: #fff; border-color: #169767; background: #20aa74; }
.compact-task { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-left: 5px solid transparent; }
.compact-task h3 { margin: 0; }
.compact-task .meta { margin: .3rem 0 0; }

.rte-field { display: grid; }
.rte-label { margin-bottom: .4rem; color: var(--ink); font-size: .76rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.rte-label small { color: var(--muted); font-weight: 400; text-transform: none; }
.rte-toolbar { display: flex; gap: .3rem; padding: .4rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; background: #f3f0fa; }
.rte-toolbar button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; border-radius: 9px; color: var(--ink); background: #fff; cursor: pointer; }
.rte-editor { min-height: 150px; padding: 1rem; border: 1px solid var(--line); border-radius: 0 0 18px 18px; background: #fff; line-height: 1.55; }
.rte-editor:focus { outline: 3px solid #c8bbff; border-color: var(--brand); }
.rte-editor:empty::before { content: attr(data-placeholder); color: #9a96a7; pointer-events: none; }
.rte-editor p { margin: 0 0 .65rem; }
.rte-source[hidden] { display: none; }

.countdown-card .call-countdown { font-variant-numeric: tabular-nums; font-size: clamp(2rem,9vw,3.25rem); letter-spacing: .02em; }
.countdown-actions { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: 1rem; }
.countdown-actions .button { float: none; }
.countdown-call { gap: .45rem; color: #fff !important; background: rgba(255,255,255,.14) !important; }
.dashboard-task-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-top: .85rem; }
.dashboard-task-stats a { display: grid; min-height: 112px; padding: 1rem; border-radius: 22px; background: var(--lilac); }
.dashboard-task-stats a:nth-child(2) { background: var(--mint); }
.dashboard-task-stats strong { align-self: end; font-size: 2rem; }
.dashboard-task-stats span { color: #625e70; font-size: .8rem; font-weight: 750; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-top: 1.2rem; }
.dashboard-shortcuts a { display: grid; place-items: center; align-content: center; gap: .55rem; min-height: 104px; padding: .75rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-size: .78rem; font-weight: 800; text-align: center; }
.dashboard-shortcuts i { color: var(--brand); font-size: 1.45rem; }
.profile-summary { margin-bottom: 1.3rem; }
.profile-summary .profile-avatar { font-size: 2rem; }
.profile-summary h2 { margin: 0; }
.profile-form { margin-bottom: 1rem; }
.report-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; }
.report-card { display: grid; min-height: 120px; margin: 0; }
.report-card strong { align-self: end; color: var(--brand); font-size: 2rem; }
.report-card span { color: var(--muted); font-size: .8rem; font-weight: 750; }

.lead-page-head { align-items: center; }
.lead-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lead-detail-head form { margin: 0; }
.lead-delete-button { color: #d94762; border-color: #ffd3dc; background: #fff3f6; }
.lead-delete-button:hover { background: #ffe5eb; }
.lead-services { margin: .6rem 0 0; color: var(--ink); font-size: .78rem; line-height: 1.45; }
.lead-card-actions { justify-content: flex-end; }
.lead-card-actions .text-link { margin-left: auto; }
.whatsapp-button { color: #169b62 !important; }
.lead-business { margin-bottom: .45rem; }
.lead-phone-row { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-bottom: 1.15rem; }
.lead-phone-row > a { color: var(--muted); font-weight: 750; }
.lead-quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.lead-quick-actions > a, .lead-quick-actions > button { display: grid; place-items: center; align-content: center; gap: .35rem; min-height: 76px; padding: .65rem .35rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; font-size: .72rem; font-weight: 800; cursor: pointer; }
.lead-quick-actions > a:first-child { color: #fff; border-color: var(--brand); background: var(--brand); }
.lead-quick-actions i { font-size: 1.2rem; }
.lead-timeline { margin-top: 1.5rem; }
.app-dialog { width: min(calc(100% - 2rem),520px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.app-dialog::backdrop { background: rgba(23,20,47,.58); backdrop-filter: blur(4px); }
.dialog-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; }

.toast { position: fixed; z-index: 90; top: 1rem; left: 50%; width: min(calc(100% - 2rem),728px); margin: 0; transform: translateX(-50%); border-color: #dcd4ff; border-radius: 16px; color: var(--deep); background: #eeeaff; box-shadow: 0 12px 32px rgba(32,24,79,.16); }
.authenticated .toast { top: max(6.25rem,calc(env(safe-area-inset-top) + 5.25rem)); }
.empty { border-color: #ddd9e6; border-radius: 22px; }
.timeline li > span { background: var(--brand); box-shadow: 0 0 0 4px #e7e0ff; }

.logo { background: #fff; border-color: var(--line); box-shadow: none; }
.login { width: min(100%,420px); }
.login .logo { width: 88px; height: 88px; padding: 15px; border-radius: 24px; }
.login .logo img { width: 100%; height: 100%; object-fit: contain; }
.otp-input { text-align: center; font-size: 1.8rem; font-weight: 850; letter-spacing: .55em; padding-left: .55em; }
.remember { grid-template-columns: 22px 1fr !important; align-items: center; }
.remember input { min-height: 20px; height: 20px; }
.resend button { border: 0; background: transparent; }
.resend button:disabled { color: var(--muted); cursor: wait; opacity: .8; }

.notification-page-head { margin-bottom: .9rem; }
.notification-summary { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.notification-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-bottom: 1.25rem; }
.notification-toolbar form { margin: 0; }
.notification-control { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; font-size: .76rem; font-weight: 850; cursor: pointer; }
.notification-control i { flex: 0 0 auto; font-size: .95rem; }
.notification-control.enable-alerts { color: #fff; border-color: var(--brand); background: var(--brand); }
.notification-control.enable-alerts:hover { background: var(--brand2); }
.notification-control.enable-alerts:disabled { color: #16795b; border-color: #c5eddd; background: var(--mint); opacity: 1; cursor: default; }
.notification-control.all-read { color: #16795b; border-color: #ccecdf; background: #f1fbf6; cursor: default; }
.notification-list { display: grid; gap: .75rem; }
.notification-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 21px; background: #fff; }
.notification-card.is-unread { border-color: #d8ceff; border-left: 5px solid var(--brand); background: #fdfcff; }
.notification-card.is-read { background: rgba(255,255,255,.72); }
.notification-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--brand); background: var(--lilac); }
.notification-card.is-read .notification-icon { color: #7d7a91; background: #f0eef4; }
.notification-content { min-width: 0; }
.notification-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .68rem; }
.notification-meta time { white-space: nowrap; }
.notification-state { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; }
.notification-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.notification-card h2 { margin: .55rem 0 .3rem; font-size: 1rem; line-height: 1.35; letter-spacing: -.015em; }
.notification-card p { margin: 0; color: #625e70; font-size: .83rem; line-height: 1.5; }
.notification-open { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #eeebf3; color: var(--brand); font-size: .76rem; font-weight: 850; }
.notification-open i { font-size: .72rem; }
.notification-empty { display: grid; justify-items: center; gap: .45rem; padding: 2.2rem 1rem; color: var(--muted); text-align: center; }
.notification-empty i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--brand); background: var(--lilac); font-size: 1.15rem; }
.notification-empty strong { color: var(--ink); }
.notification-empty span { font-size: .8rem; }

.nav { position: fixed; z-index: 30; left: 50%; right: auto; bottom: 0; width: min(100%,760px); height: 88px; padding: 8px 10px max(8px,env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: flex-end; overflow: visible; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.nav > a, .nav > details { flex: 1; min-width: 0; }
.nav > a, .nav > details > summary { height: 65px; display: grid; place-items: center; align-content: center; gap: .15rem; border-radius: 15px; color: #9692a4; font-size: .68rem; list-style: none; }
.nav > details > summary::-webkit-details-marker { display: none; }
.nav a.active { color: var(--brand); background: transparent; }
.nav a.active i { display: grid; place-items: center; min-width: 34px; height: 30px; border-radius: 12px; background: #ece7ff; }
.nav i { font-style: normal; font-size: 1.15rem; }
.nav-add { align-self: flex-start; width: 70px !important; height: 70px !important; margin-top: -31px; border-radius: 22px !important; color: #fff !important; background: var(--brand) !important; box-shadow: 0 10px 24px rgba(108,79,248,.25); }
.nav-add i { font-size: 2rem; }
.nav-more { position: relative; }
.more-sheet { position: absolute; right: 0; bottom: 76px; width: 190px; padding: .55rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(32,24,79,.15); }
.more-sheet a, .more-sheet button { display: block; width: 100%; padding: .75rem; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; }
.more-sheet a, .more-sheet button, .more-user { display: flex; align-items: center; gap: .7rem; }
.more-user { padding: .75rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.more-sheet a:hover, .more-sheet button:hover { background: #f1edff; }

@media (min-width: 700px) {
  body { padding: 0 0 98px; }
  .shell { padding: 2.25rem 2.5rem 7rem; box-shadow: 0 0 50px rgba(32,24,79,.06); }
  .cards { grid-template-columns: 1fr; gap: .85rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3,1fr); }
  .team-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
