:root {
  --bg: #f5f4ef;
  --surface: #fffefa;
  --surface-soft: #f9f8f4;
  --ink: #1f2421;
  --muted: #7e857e;
  --line: #e7e7df;
  --line-strong: #d8d9d0;
  --orange: #e77d3c;
  --orange-dark: #c96329;
  --orange-wash: #fff0e6;
  --purple: #7666ef;
  --purple-wash: #eeebff;
  --blue: #548dcf;
  --blue-wash: #eaf3ff;
  --green: #43a27f;
  --green-wash: #e6f6ef;
  --yellow: #d69935;
  --yellow-wash: #fff3d8;
  --shadow-sm: 0 2px 8px rgba(31, 36, 33, .04);
  --shadow-md: 0 12px 34px rgba(31, 36, 33, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: "Manrope", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
body { min-width: 320px; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(231,125,60,.3); outline-offset: 2px; }
i[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: #202622; color: #e8ece8; padding: 26px 16px 18px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 36px; }
.brand-mark { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(231,125,60,.2); }
.brand-mark i { width: 20px; height: 20px; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-caption { color: #89928a; font-size: 11px; margin-top: 2px; letter-spacing: .03em; }
.sidebar-section-label { padding: 0 13px 10px; font-family: "DM Mono", monospace; font-size: 10px; color: #758078; letter-spacing: .12em; }
.sidebar-section-label.second { margin-top: 32px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; color: #aab4ac; background: transparent; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.nav-item i { width: 18px; height: 18px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { background: #303933; color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav-count { margin-left: auto; font-family: "DM Mono", monospace; font-size: 10px; color: #68766d; }
.nav-count.orange { color: #f6a373; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 16px; }
.privacy-note { display: flex; align-items: center; gap: 10px; border-top: 1px solid #374039; padding: 16px 10px 0; color: #8c988e; }
.privacy-note i { width: 17px; color: #65c7a0; }
.privacy-note div { display: grid; gap: 2px; }
.privacy-note strong { color: #c5ccc6; font-size: 11px; font-weight: 600; }
.privacy-note span { font-size: 10px; color: #68736b; }
.profile-chip { width: 100%; display: flex; align-items: center; gap: 9px; background: #2b332e; border-radius: 10px; padding: 9px 10px; color: #fff; text-align: left; }
.profile-chip strong { display: block; font-size: 12px; font-weight: 700; }
.profile-chip small { display: block; color: #859188; font-size: 10px; margin-top: 2px; }
.profile-chip > i { margin-left: auto; width: 15px; color: #79857c; }
.main-content { flex: 1; min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 46px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #9a9f98; font-size: 12px; }
.breadcrumbs i { width: 14px; height: 14px; color: #babeb7; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #778078; display: inline-grid; place-items: center; position: relative; transition: background .2s, border-color .2s, color .2s; }
.icon-button:hover, .icon-button.soft { background: #ecece6; color: var(--ink); }
.icon-button.has-dot .notification-dot { position: absolute; width: 5px; height: 5px; top: 8px; right: 9px; border: 1px solid var(--bg); border-radius: 50%; background: var(--orange); }
.top-avatar { width: 34px; height: 34px; border-radius: 50%; background: #e8c39c; color: #6b4326; font-weight: 800; font-size: 13px; border: 2px solid #fffefa; box-shadow: 0 0 0 1px var(--line); }
.view-container { max-width: 1420px; padding: 39px 46px 64px; margin: 0 auto; }
.view { display: none; animation: fade-in .25s ease-out; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row, .page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #879087; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .1em; font-weight: 500; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; display: inline-block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.04em; margin-top: 11px; font-weight: 800; }
.wave { color: var(--orange); }
.intro { color: #7f8780; font-size: 13px; margin-top: 10px; }
.primary-button, .secondary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 0 16px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { color: #fff; background: var(--orange); box-shadow: 0 7px 16px rgba(231,125,60,.2); }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(231,125,60,.25); }
.secondary-button { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
.secondary-button:hover { background: var(--surface-soft); transform: translateY(-1px); }
.primary-button i, .secondary-button i { width: 16px; height: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.stat-card { position: relative; min-height: 166px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 15px; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat-card-main { background: #fffaf2; border-color: #f6dfc9; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #7f8980; font-size: 12px; font-weight: 600; }
.stat-top i { width: 17px; height: 17px; color: #adb5ad; }
.stat-card-main .stat-top i { color: var(--orange); }
.stat-value { margin-top: 19px; font-family: "DM Mono", monospace; font-size: 32px; line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.stat-unit { font-family: "Noto Sans SC", sans-serif; font-size: 14px; margin-left: 4px; font-weight: 600; letter-spacing: 0; }
.stat-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #9aa09a; font-size: 10px; }
.trend-up { display: inline-flex; align-items: center; gap: 3px; color: var(--green); }
.trend-up i { width: 12px; height: 12px; }
.status-warning, .status-blue { display: inline-flex; align-items: center; gap: 5px; }
.status-warning { color: #c8833c; }.status-blue { color: #6390ba; }
.mini-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: currentColor; }
.stat-sparkline { position: absolute; right: 18px; bottom: 16px; width: 85px; height: 48px; display: flex; align-items: end; gap: 4px; }
.stat-sparkline span { flex: 1; background: #f2b384; border-radius: 4px 4px 2px 2px; opacity: .82; }
.stat-sparkline span:nth-child(3n) { background: #e89155; }
.stat-progress { width: calc(100% - 36px); height: 5px; position: absolute; bottom: 36px; left: 18px; overflow: hidden; background: #f1f0eb; border-radius: 10px; }
.stat-progress span { display: block; height: 100%; background: #dd9c55; border-radius: inherit; }
.progress-label { position: absolute; left: 18px; right: 18px; bottom: 15px; display: flex; justify-content: space-between; color: #a3a8a2; font-size: 10px; }.progress-label strong { color: #ad773f; font-weight: 700; }
.project-mini-bars { position: absolute; right: 19px; bottom: 16px; width: 76px; height: 46px; display: flex; align-items: end; gap: 5px; }.project-mini-bars span { flex: 1; border-radius: 3px 3px 0 0; background: #8eb4dd; }.project-mini-bars span:nth-child(odd) { background: #c6d9ec; }
.outcome-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 24px; color: #6c9b85; font-size: 10px; }.outcome-badge i { width: 14px; height: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .9fr); gap: 14px; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.reminders-panel, .projects-panel, .contacts-panel { padding: 22px 22px 14px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.panel-kicker { color: #9da49d; font-family: "DM Mono", monospace; letter-spacing: .1em; font-size: 10px; }.panel-heading h2 { margin-top: 6px; font-size: 18px; letter-spacing: -.025em; }.text-button { display: inline-flex; align-items: center; gap: 5px; color: var(--orange-dark); background: transparent; font-size: 11px; font-weight: 700; padding: 3px 0; }.text-button i { width: 14px; height: 14px; }
.reminder-list { margin-top: 18px; }.reminder-item { display: grid; grid-template-columns: 55px 10px minmax(0,1fr) 34px; align-items: center; min-height: 76px; border-bottom: 1px solid #eeeee8; }.reminder-item:last-child { border-bottom: 0; }.reminder-time strong { display: block; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; color: #454d46; }.reminder-time span { display: block; margin-top: 4px; color: #aaaFA9; font-size: 10px; }.reminder-line { width: 2px; height: 42px; justify-self: center; background: #e99660; border-radius: 10px; }.reminder-line.blue { background: #79a7d4; }.reminder-line.green { background: #70b998; }.reminder-main { min-width: 0; padding-left: 6px; }.reminder-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }.reminder-title-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }.reminder-main p { display: flex; align-items: center; min-width: 0; margin-top: 8px; color: #99a09a; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.muted-dot { padding: 0 6px; color: #d1d3cd; }.done-button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #d9ddd8; color: #9ca49c; background: transparent; transition: all .2s; }.done-button:hover { color: #fff; border-color: var(--green); background: var(--green); }.done-button i { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; font-size: 9px; font-weight: 700; white-space: nowrap; }.tag-coral { color: #b45f31; background: #fff0e8; }.tag-blue { color: #4c7ead; background: #e9f2fc; }.tag-green { color: #43866a; background: #e7f6ef; }.tag-purple { color: #6559bf; background: #efecff; }.tag-yellow { color: #af7d2f; background: #fff3d7; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #efefe9; padding-top: 12px; margin-top: 4px; }.footer-note { display: flex; align-items: center; gap: 5px; color: #a4aaa4; font-size: 10px; }.footer-note i { width: 14px; height: 14px; }.quiet-button { display: inline-flex; align-items: center; gap: 5px; color: #79837b; background: transparent; font-size: 11px; font-weight: 700; padding: 5px 0; }.quiet-button:hover { color: var(--ink); }.quiet-button i { width: 14px; height: 14px; }
.project-list { margin-top: 16px; }.project-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #efefe9; }.project-item:last-child { border-bottom: 0; }.project-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; }.project-icon i { width: 17px; height: 17px; }.project-icon.purple { color: var(--purple); background: var(--purple-wash); }.project-icon.orange { color: var(--orange); background: var(--orange-wash); }.project-icon.green { color: var(--green); background: var(--green-wash); }.project-main { min-width: 0; flex: 1; }.project-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.project-title-row h3 { font-size: 12px; font-weight: 700; }.project-percent { font-family: "DM Mono", monospace; color: #8f9690; font-size: 10px; }.project-main p { color: #a0a6a0; font-size: 10px; margin-top: 4px; }.progress-track { height: 5px; width: 100%; background: #f1f0eb; border-radius: 8px; overflow: hidden; margin-top: 11px; }.progress-track span { display: block; height: 100%; border-radius: inherit; }.project-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; color: #a2a8a2; font-size: 9px; }.project-meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }.project-meta i { width: 12px; height: 12px; }.status-pill { min-height: 18px; padding: 0 6px; border-radius: 5px; font-size: 9px; font-weight: 700; }.status-pill.purple { color: #6f64c5; background: #efecff; }.status-pill.orange { color: #b97633; background: #fff1df; }.status-pill.green { color: #48896e; background: #e6f6ee; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 14px; margin-top: 16px; }.contact-table { margin-top: 15px; }.contact-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .9fr) minmax(120px, .9fr) 30px; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid #efefe9; }.contact-row:last-child { border-bottom: 0; }.contact-header { min-height: 25px; border-bottom: 0; color: #a5aba5; font-size: 10px; }.contact-person { display: flex; align-items: center; gap: 9px; min-width: 0; }.contact-person strong { display: block; font-size: 11px; }.contact-person small { display: block; color: #a1a7a1; font-size: 9px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.contact-date strong { display: block; color: #6f786f; font-size: 10px; font-weight: 600; }.contact-date small { display: block; color: #a1a7a1; font-size: 9px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.row-more { width: 30px; height: 30px; display: grid; place-items: center; color: #aeb5ae; border-radius: 7px; background: transparent; }.row-more:hover { background: #f1f1ec; color: var(--ink); }.row-more i { width: 17px; height: 17px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800; flex: 0 0 auto; }.avatar-small { width: 30px; height: 30px; font-size: 11px; }.avatar-tiny { width: 18px; height: 18px; font-size: 8px; margin-right: 5px; }.avatar-large { width: 44px; height: 44px; font-size: 16px; }.avatar-medium { width: 40px; height: 40px; font-size: 14px; }.avatar-orange { color: #a95f31; background: #f8d5bc; }.avatar-blue { color: #4d76a5; background: #cfe2f6; }.avatar-green { color: #3d7a60; background: #cceadb; }.avatar-purple { color: #6559b1; background: #ddd8fb; }
.match-teaser { padding: 20px 22px 23px; background: #232a26; color: #f6f4ec; border-color: #232a26; overflow: hidden; position: relative; }.match-teaser .panel-kicker { color: #87948b; position: relative; }.match-teaser h2 { position: relative; font-size: 23px; line-height: 1.25; margin-top: 8px; letter-spacing: -.035em; }.match-teaser h2 em { color: #ffaf7e; font-style: normal; }.match-teaser p { position: relative; color: #a4afa5; font-size: 11px; line-height: 1.65; margin: 10px 0 18px; max-width: 205px; }.match-teaser .secondary-button { position: relative; background: transparent; color: #fff; border-color: #525f55; height: 35px; min-height: 35px; font-size: 10px; padding: 0 11px; }.match-art { height: 105px; position: relative; margin-bottom: 12px; }.orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; left: 42%; top: 44%; transform: translate(-50%,-50%); }.ring-one { width: 138px; height: 65px; transform: translate(-50%,-50%) rotate(-17deg); }.ring-two { width: 103px; height: 48px; transform: translate(-50%,-50%) rotate(32deg); }.match-core { width: 40px; height: 40px; position: absolute; left: 42%; top: 44%; transform: translate(-50%,-50%); border-radius: 50%; display: grid; place-items: center; color: #fff; background: #dc7540; box-shadow: 0 0 0 8px rgba(220,117,64,.1); }.match-core i { width: 19px; height: 19px; }.orbit-node { width: 24px; height: 24px; display: grid; place-items: center; position: absolute; border-radius: 50%; background: #39433d; color: #b6c0b7; border: 1px solid #56635a; }.orbit-node i { width: 12px; height: 12px; }.node-one { left: 6%; top: 9%; }.node-two { right: 8%; top: 7%; }.node-three { right: 4%; bottom: 0; }.match-art::after { content: ""; position: absolute; width: 5px; height: 5px; right: 39%; bottom: 14px; background: #8dc8af; border-radius: 50%; box-shadow: 0 0 0 5px rgba(141,200,175,.1); }
.mobile-nav { display: none; }

/* Contacts */
.header-actions { display: flex; gap: 9px; margin-top: 8px; }.contacts-toolbar { display: flex; align-items: center; gap: 14px; margin-top: 29px; }.search-field { height: 43px; flex: 0 1 320px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: #a3aaa3; }.search-field i { width: 16px; height: 16px; }.search-field input { border: 0; outline: 0; min-width: 0; flex: 1; background: transparent; font-size: 12px; color: var(--ink); }.search-field kbd { color: #9ba29b; font-family: "DM Mono", monospace; font-size: 9px; background: #f1f1eb; padding: 3px 5px; border-radius: 4px; }.filter-chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; }.filter-chip { min-height: 34px; flex: 0 0 auto; padding: 0 10px; color: #808980; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 10px; }.filter-chip span { margin-left: 3px; color: #b1b7b0; }.filter-chip.active { color: var(--ink); background: #ecece6; border-color: #dfe0d8; font-weight: 700; }.contacts-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 17px; margin-top: 18px; }.category-panel { padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }.category-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 11px; font-size: 12px; }.category-heading button { width: 25px; height: 25px; display: grid; place-items: center; color: #8b948b; border-radius: 6px; background: #f0f0ea; }.category-heading i { width: 14px; height: 14px; }.category-item { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 8px; color: #7f8980; text-align: left; border-radius: 8px; background: transparent; font-size: 11px; }.category-item:hover { background: #f4f3ed; }.category-item.active { color: var(--ink); background: #f0f0e9; font-weight: 700; }.category-item > span:last-child { margin-left: auto; color: #b0b6b0; font-family: "DM Mono", monospace; font-size: 9px; }.category-color { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 8px; background: #9ca59d; }.category-color.black { background: #454c46; }.category-color.coral { background: #e77d3c; }.category-color.blue { background: #6e9dcc; }.category-color.green { background: #5bb28e; }.category-color.yellow { background: #d49d42; }.category-color.purple { background: #8476ec; }.category-item.muted { margin-top: 10px; color: #a1a8a1; }.category-item.muted i { width: 14px; height: 14px; }.category-divider { height: 1px; background: var(--line); margin: 17px 8px 15px; }.category-hint { display: flex; gap: 7px; padding: 0 5px; color: #c58953; }.category-hint i { width: 14px; height: 14px; flex: 0 0 14px; }.category-hint p { color: #a49f8d; font-size: 9px; line-height: 1.6; }.results-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; color: #a0a7a0; font-size: 11px; }.results-toolbar strong { color: var(--ink); }.results-toolbar > div { display: flex; gap: 2px; }.results-toolbar .icon-button { width: 32px; height: 32px; }.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }.contact-card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }.card-top { display: flex; justify-content: space-between; align-items: center; }.contact-card h3 { font-size: 15px; margin-top: 13px; letter-spacing: -.02em; }.company { min-height: 30px; color: #919a92; font-size: 10px; line-height: 1.5; margin-top: 5px; }.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 4px; border-top: 1px solid #efefe9; padding-top: 12px; margin-top: 15px; color: #a5aca5; font-size: 9px; }.card-bottom span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }.card-bottom i { width: 12px; height: 12px; }.card-reminder { color: #c4834b; }

.relationship-panel { margin-top: 16px; padding: 22px; }.relationship-subtitle { color: #989f98; font-size: 11px; margin-top: 7px; }.relation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid #efefe9; }.relation-filters { display: flex; align-items: center; gap: 6px; overflow-x: auto; }.relation-filter { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: #909990; background: transparent; font-size: 10px; }.relation-filter > span:last-child { color: #b2b8b2; font-family: "DM Mono", monospace; font-size: 9px; }.relation-filter.active { color: var(--ink); border-color: #dedfd8; background: #f0f0e9; font-weight: 700; }.relation-filter.active > span:last-child { color: #8e968e; }.relation-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: #9ea69e; }.relation-dot.coral { background: var(--orange); }.relation-dot.blue { background: var(--blue); }.relation-dot.green { background: var(--green); }.relation-dot.purple { background: var(--purple); }.secondary-button.compact { min-height: 32px; padding: 0 10px; font-size: 10px; }.secondary-button.compact i { width: 14px; height: 14px; }.relationship-content { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; margin-top: 17px; }.relationship-map { position: relative; min-height: 260px; overflow: hidden; border: 1px solid #efefe9; border-radius: 12px; background: radial-gradient(circle at 50% 50%, #fffaf1 0, #fffefa 45%, #f7f7f1 100%); }.map-line { position: absolute; z-index: 0; left: 50%; top: 50%; width: 29%; height: 1px; transform-origin: left center; border-top: 1px dashed #d9ddd5; }.line-a { transform: rotate(-148deg); }.line-b { transform: rotate(-32deg); }.line-c { transform: rotate(16deg); width: 25%; }.line-d { transform: rotate(145deg); width: 26%; }.line-e { transform: rotate(78deg); width: 24%; }.map-node { position: absolute; z-index: 1; display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 7px 6px; color: var(--ink); border: 1px solid transparent; border-radius: 10px; background: rgba(255,254,250,.92); }.map-node:hover { border-color: #e1e2da; box-shadow: var(--shadow-sm); }.map-node strong { font-size: 10px; }.map-node small { color: #9ca39c; font-size: 8px; }.node-center { left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 9px 12px; border-color: #f2d3bd; background: #fff8ef; }.node-center strong { color: var(--orange-dark); font-size: 11px; }.map-node-a { left: 9%; top: 14%; }.map-node-b { left: 11%; bottom: 11%; }.map-node-c { right: 9%; top: 13%; }.map-node-d { right: 8%; bottom: 11%; }.map-node-e { left: 50%; bottom: 7%; transform: translateX(-50%); }.relationship-detail { padding: 8px 2px 2px; }.detail-label { color: #9ca39c; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; }.detail-title { display: flex; align-items: center; gap: 7px; margin-top: 10px; }.detail-title h3 { font-size: 17px; }.detail-title strong { margin-left: auto; color: #89928a; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }.relationship-detail > p { color: #969f97; font-size: 10px; line-height: 1.7; margin-top: 10px; }.relation-chain { margin-top: 15px; padding: 12px 10px; border: 1px solid #eee6da; border-radius: 9px; background: #fffaf2; }.chain-item { display: flex; align-items: center; gap: 5px; color: #6e786f; font-size: 10px; }.chain-item i { width: 12px; height: 12px; margin: 0 2px; color: #c6864c; }.chain-item.muted { margin-top: 9px; color: #b09f89; font-size: 9px; }.chain-item.muted i { margin: 0; }.relationship-detail > .quiet-button { margin-top: 15px; color: var(--orange-dark); }.tag-relation-coral { color: #b45f31; background: #fff0e8; }.tag-relation-blue { color: #4c7ead; background: #e9f2fc; }.tag-relation-green { color: #43866a; background: #e7f6ef; }.tag-relation-purple { color: #6559bf; background: #efecff; }.tag-relation-gray { color: #737d74; background: #eef0eb; }.field-hint { color: #a0a8a0; font-size: 9px; font-weight: 400; line-height: 1.5; }.modal select { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fcfcf8; color: var(--ink); padding: 0 11px; font-size: 12px; }.modal select:focus { border-color: var(--orange); outline: 0; }
.gift-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 29px; }.gift-summary-card { position: relative; min-height: 125px; display: flex; align-items: flex-start; gap: 11px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.gift-summary-card.warm { background: #fffaf2; border-color: #f4dfc9; }.gift-summary-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 9px; background: #f0f0ea; color: #7d877f; }.gift-summary-icon i { width: 17px; height: 17px; }.gift-summary-icon.coral { color: var(--orange-dark); background: var(--orange-wash); }.gift-summary-icon.blue { color: var(--blue); background: var(--blue-wash); }.gift-summary-icon.green { color: var(--green); background: var(--green-wash); }.gift-summary-card small { display: block; color: #959e96; font-size: 10px; }.gift-summary-card strong { display: block; margin-top: 8px; color: var(--ink); font-family: "DM Mono", monospace; font-size: 22px; line-height: 1; font-weight: 500; }.gift-summary-card span:not(.gift-summary-icon):not(.summary-alert):not(.summary-calendar):not(.balance-badge) { display: block; margin-top: 8px; color: #a4aaa4; font-size: 9px; }.summary-alert, .balance-badge { position: absolute; right: 13px; bottom: 13px; padding: 4px 6px; border-radius: 5px; color: #b97435; background: #fff0df; font-size: 9px; font-weight: 700; }.balance-badge { color: #48896e; background: #e7f6ee; }.summary-calendar { position: absolute; right: 13px; top: 14px; color: #91afd0; }.summary-calendar i { width: 14px; height: 14px; }.summary-line { position: absolute; left: 17px; right: 17px; bottom: 10px; height: 4px; overflow: hidden; border-radius: 4px; background: #f1e6d7; }.warm-line::after { content: ""; display: block; width: 64%; height: 100%; border-radius: inherit; background: #e49a61; }.gift-quick-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }.quick-gift-action { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 12px 13px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: #7e897f; }.quick-gift-action > i:first-child { width: 18px; height: 18px; flex: 0 0 18px; }.quick-gift-action > i:last-child { width: 14px; height: 14px; margin-left: auto; color: #a9b0a9; }.quick-gift-action span { min-width: 0; }.quick-gift-action strong { display: block; color: var(--ink); font-size: 11px; }.quick-gift-action small { display: block; color: #a0a7a0; margin-top: 3px; font-size: 9px; }.quick-gift-action.voice > i:first-child { color: var(--orange); }.quick-gift-action.photo > i:first-child { color: var(--blue); }.quick-gift-action.export > i:first-child { color: var(--green); }.quick-gift-action:hover { border-color: #d8dad1; background: #fcfcf8; transform: translateY(-1px); }.gift-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.75fr); gap: 14px; margin-top: 16px; }.ledger-panel, .calendar-panel { padding: 21px 22px 13px; }.ledger-filters { display: flex; gap: 6px; overflow-x: auto; margin-top: 17px; padding-bottom: 3px; }.ledger-filter { min-height: 31px; flex: 0 0 auto; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #909990; font-size: 10px; }.ledger-filter span { margin-left: 3px; color: #b1b7b0; font-family: "DM Mono", monospace; font-size: 9px; }.ledger-filter.active { color: var(--ink); background: #f0f0e9; border-color: #dedfd8; font-weight: 700; }.ledger-list { margin-top: 8px; }.ledger-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 75px 90px 28px; align-items: center; gap: 12px; min-height: 78px; border-bottom: 1px solid #efefe9; }.ledger-row:last-child { border-bottom: 0; }.ledger-date { text-align: center; }.ledger-date strong { display: block; color: #4c574e; font-family: "DM Mono", monospace; font-size: 17px; font-weight: 500; line-height: 1; }.ledger-date span { display: block; margin-top: 4px; color: #a1a8a1; font-size: 9px; }.ledger-event { min-width: 0; }.ledger-event-title { display: flex; align-items: center; gap: 8px; }.ledger-kind { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 8px; }.ledger-kind i { width: 15px; height: 15px; }.ledger-kind.cash { color: var(--orange-dark); background: var(--orange-wash); }.ledger-kind.gift { color: var(--purple); background: var(--purple-wash); }.ledger-event-title h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.ledger-event-title p { display: flex; align-items: center; min-width: 0; margin-top: 5px; color: #929b93; font-size: 9px; }.ledger-note { display: block; margin-top: 6px; overflow: hidden; color: #b0b6b0; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.ledger-amount strong { display: block; color: #5c665e; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }.ledger-amount small, .ledger-status small { display: block; margin-top: 4px; color: #a5aca5; font-size: 9px; }.ledger-status-pill { display: inline-flex; min-height: 20px; align-items: center; padding: 0 6px; border-radius: 5px; font-size: 9px; font-weight: 700; }.ledger-status-pill.pending { color: #b97435; background: #fff0df; }.ledger-status-pill.done { color: #48896e; background: #e7f6ee; }.ledger-empty { display: grid; justify-items: center; gap: 7px; padding: 50px 0; color: #a1a9a1; }.ledger-empty i { width: 22px; height: 22px; color: #d39a65; }.ledger-empty strong { color: #667168; font-size: 12px; }.ledger-empty span { font-size: 10px; }.calendar-month { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }.calendar-month button { width: 25px; height: 25px; display: grid; place-items: center; color: #8d978e; border-radius: 6px; background: #f2f2ec; }.calendar-month i { width: 14px; height: 14px; }.calendar-month strong { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; }.mini-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-top: 14px; text-align: center; }.mini-calendar span { min-height: 23px; display: grid; place-items: center; color: #737d74; border-radius: 6px; font-family: "DM Mono", monospace; font-size: 9px; }.mini-calendar .weekday { min-height: 18px; color: #a9afa8; font-family: "Noto Sans SC", sans-serif; font-size: 8px; }.mini-calendar .muted-day { color: #c6cbc4; }.mini-calendar .today { color: #fff; background: var(--ink); }.mini-calendar .event-day { position: relative; color: var(--ink); font-weight: 700; }.mini-calendar .event-day::after { content: ""; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }.mini-calendar .coral-day { color: var(--orange-dark); background: #fff0e8; }.mini-calendar .blue-day { color: #4c7ead; background: #e9f2fc; }.calendar-events { margin-top: 14px; border-top: 1px solid #efefe9; }.calendar-events article { display: flex; align-items: center; gap: 7px; min-height: 50px; border-bottom: 1px solid #efefe9; }.calendar-events article:last-child { border-bottom: 0; }.event-mark { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #aaa; }.event-mark.coral { background: var(--orange); }.event-mark.blue { background: var(--blue); }.event-mark.green { background: var(--green); }.calendar-events article div { min-width: 0; flex: 1; }.calendar-events strong { display: block; overflow: hidden; color: #6f796f; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.calendar-events small { display: block; margin-top: 3px; color: #a2aaa2; font-size: 9px; }.calendar-events .row-more { width: 25px; }.calendar-events .row-more i { width: 13px; height: 13px; }.gift-modal { width: min(100%, 540px); }.form-two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }

/* Match */
.match-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 28px; }.match-tab { position: relative; min-height: 42px; padding: 0 12px; color: #929a92; background: transparent; font-size: 11px; font-weight: 600; }.match-tab span { margin-left: 4px; color: #c18d61; font-family: "DM Mono", monospace; font-size: 9px; }.match-tab.active { color: var(--ink); }.match-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 5px; background: var(--orange); }.match-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: 14px; margin-top: 18px; }.match-feature { padding: 23px; }.match-feature-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }.match-feature-head h2 { margin-top: 7px; font-size: 18px; letter-spacing: -.02em; }.match-feature-head p { color: #999f99; font-size: 11px; margin-top: 6px; }.match-score-label { color: #a3a9a3; font-size: 10px; }.match-score-label strong { color: var(--orange); font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500; margin-left: 4px; }.match-result-list { margin-top: 20px; }.match-result { display: grid; grid-template-columns: 40px minmax(0,1fr) 54px 83px; align-items: center; gap: 13px; min-height: 86px; border-top: 1px solid #efefe9; }.match-result-main { min-width: 0; }.match-result-title { display: flex; align-items: center; gap: 7px; }.match-result-title h3 { font-size: 13px; }.match-result-main > p { color: #929b93; font-size: 10px; margin-top: 5px; }.match-reason { display: flex; align-items: center; gap: 5px; color: #ac9c74; font-size: 9px; margin-top: 7px; }.match-reason i { width: 12px; height: 12px; color: var(--orange); }.match-score { text-align: center; }.match-score strong { display: block; color: var(--orange); font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500; }.match-score small { display: block; color: #adb3ad; font-size: 9px; margin-top: 3px; }.outline-button { height: 30px; padding: 0 9px; border: 1px solid #dedfd8; border-radius: 7px; background: transparent; color: #798379; font-size: 10px; font-weight: 700; }.outline-button:hover { color: var(--ink); border-color: #bec3bd; background: #f7f7f2; }.match-side { padding: 23px; align-self: start; }.side-illustration { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: var(--orange); background: var(--orange-wash); margin-bottom: 17px; }.side-illustration i { width: 22px; height: 22px; }.match-side h3 { font-size: 16px; }.match-side p { color: #909990; font-size: 11px; line-height: 1.7; margin-top: 8px; }.match-side .quiet-button { margin-top: 18px; color: var(--orange-dark); }

/* Projects */
.project-summary-row { display: flex; align-items: center; gap: 42px; padding: 19px 23px; margin-top: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.summary-item { display: flex; align-items: center; gap: 10px; }.summary-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }.summary-icon i { width: 17px; height: 17px; }.summary-icon.purple { color: var(--purple); background: var(--purple-wash); }.summary-icon.orange { color: var(--orange); background: var(--orange-wash); }.summary-icon.green { color: var(--green); background: var(--green-wash); }.summary-item strong { display: block; font-family: "DM Mono", monospace; font-size: 19px; font-weight: 500; }.summary-item span:not(.summary-icon) { display: block; color: #9ba39b; font-size: 10px; margin-top: 2px; }.summary-trend { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #9aa29a; font-size: 10px; }.summary-trend i { width: 14px; color: var(--green); }.summary-trend strong { color: var(--green); font-family: "DM Mono", monospace; font-weight: 500; font-size: 12px; }.project-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }.board-column { min-height: 330px; padding: 15px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f1f1eb; }.board-heading { display: flex; align-items: center; gap: 7px; padding: 0 5px 13px; color: #626d64; font-size: 11px; }.board-heading > span:nth-child(3) { color: #a0a8a0; font-family: "DM Mono", monospace; font-size: 10px; }.board-heading button { width: 23px; height: 23px; margin-left: auto; display: grid; place-items: center; color: #9da59d; border-radius: 6px; background: transparent; }.board-heading button:hover { background: #e6e6de; color: var(--ink); }.board-heading i { width: 14px; height: 14px; }.board-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #aaa; }.board-dot.purple { background: var(--purple); }.board-dot.orange { background: var(--orange); }.board-dot.green { background: var(--green); }.board-card { padding: 15px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }.board-card:last-child { margin-bottom: 0; }.board-card-top { display: flex; justify-content: space-between; align-items: center; }.board-card h3 { font-size: 13px; margin-top: 13px; }.board-card p { display: flex; align-items: center; color: #929c94; font-size: 10px; margin-top: 8px; }.board-progress { height: 5px; background: #f0efe9; border-radius: 8px; overflow: hidden; margin-top: 15px; }.board-progress span { height: 100%; display: block; border-radius: inherit; }.board-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; color: #9ca39c; font-size: 9px; }.board-card-foot strong { color: #7c8580; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; }.board-card.completed { opacity: .72; }.board-card.completed .board-card-foot i { width: 15px; color: var(--green); }

/* Modal/toast */
.modal-backdrop { display: none; position: fixed; z-index: 20; inset: 0; padding: 20px; background: rgba(24,29,26,.52); align-items: center; justify-content: center; }.modal-backdrop.open { display: flex; }.modal { width: min(100%, 480px); padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: 0 22px 70px rgba(0,0,0,.22); animation: modal-in .2s ease-out; }.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }.modal-heading h2 { margin-top: 6px; font-size: 21px; letter-spacing: -.03em; }.modal form { display: grid; gap: 15px; }.modal label { display: grid; gap: 7px; color: #646e66; font-size: 11px; font-weight: 700; }.modal input, .modal textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #fcfcf8; color: var(--ink); padding: 11px 12px; font-size: 12px; resize: vertical; }.modal input:focus, .modal textarea:focus { border-color: var(--orange); outline: 0; }.input-with-icon { position: relative; }.input-with-icon i { position: absolute; left: 11px; top: 12px; width: 15px; height: 15px; color: #9ea69e; }.input-with-icon input { padding-left: 34px; }.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 5px; }.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 9px; color: #fff; background: #26332b; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; font-size: 11px; }.toast.show { opacity: 1; transform: translateY(0); }.toast i { width: 15px; height: 15px; color: #8fd1ac; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1180px) { .sidebar { width: 220px; flex-basis: 220px; }.topbar, .view-container { padding-left: 30px; padding-right: 30px; }.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.contact-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }.dashboard-grid, .bottom-grid { grid-template-columns: minmax(0,1fr); }.match-teaser { min-height: 300px; }.match-art { max-width: 270px; } }
@media (max-width: 820px) { .sidebar { display: none; }.topbar { height: 64px; padding: 0 20px; }.view-container { padding: 28px 20px 88px; }.mobile-nav { position: fixed; z-index: 10; display: flex; left: 12px; right: 12px; bottom: 12px; height: 64px; align-items: center; justify-content: space-around; padding: 5px 8px; background: rgba(35,42,38,.96); border-radius: 17px; box-shadow: 0 12px 35px rgba(24,29,26,.2); }.mobile-nav-item { min-width: 45px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; color: #96a29a; font-size: 9px; }.mobile-nav-item i { width: 18px; height: 18px; }.mobile-nav-item.active { color: #fff; }.mobile-nav-item.mobile-nav-primary { position: relative; color: #fff; }.mobile-nav-primary span { width: 38px; height: 38px; display: grid; place-items: center; margin-top: -19px; border: 4px solid var(--bg); border-radius: 50%; background: var(--orange); box-shadow: 0 5px 15px rgba(231,125,60,.3); }.mobile-nav-primary i { width: 18px; height: 18px; }.mobile-nav-primary small { font-size: 9px; color: #a9b2aa; margin-top: 1px; }.welcome-row, .page-header-row { display: block; }.welcome-row .primary-button, .page-header-row .header-actions, .page-header-row > .primary-button { margin-top: 19px; }.stats-grid { margin-top: 26px; }.contacts-toolbar { display: block; }.search-field { max-width: none; }.filter-chips { margin-top: 9px; }.contacts-layout { grid-template-columns: 1fr; }.category-panel { display: none; }.match-layout { grid-template-columns: 1fr; }.match-side { min-height: 0; }.project-summary-row { flex-wrap: wrap; gap: 18px 28px; }.summary-trend { margin-left: 0; width: 100%; }.project-board { grid-template-columns: 1fr; }.board-column { min-height: 0; }.topbar-actions .icon-button:first-child { display: none; } }
@media (max-width: 520px) { h1 { font-size: 30px; }.intro { font-size: 12px; }.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.stat-card { min-height: 145px; padding: 14px; }.stat-value { font-size: 27px; margin-top: 16px; }.stat-top { font-size: 11px; }.stat-sparkline { right: 13px; bottom: 12px; width: 60px; height: 35px; }.stat-progress { left: 14px; width: calc(100% - 28px); }.progress-label { left: 14px; right: 14px; }.reminders-panel, .projects-panel, .contacts-panel, .match-feature, .match-side { padding: 17px 15px 12px; }.reminder-item { grid-template-columns: 48px 7px minmax(0,1fr) 28px; }.reminder-title-row { display: block; }.reminder-title-row .tag { margin-top: 5px; }.contact-row { grid-template-columns: minmax(140px,1.2fr) minmax(80px,.8fr) 28px; gap: 6px; }.contact-row > :nth-child(3) { display: none; }.contact-row.contact-header > :nth-child(3) { display: none; }.contact-cards { gap: 10px; }.contact-card { padding: 13px; }.card-bottom { display: block; line-height: 1.7; }.card-reminder { display: flex; margin-top: 3px; }.match-result { grid-template-columns: 40px minmax(0,1fr) 46px; gap: 9px; padding: 10px 0; }.match-result .outline-button { display: none; }.match-feature-head { display: block; }.match-score-label { display: block; margin-top: 12px; }.match-tabs { overflow-x: auto; }.match-tab { white-space: nowrap; }.topbar .breadcrumbs { font-size: 11px; }.header-actions { display: flex; }.header-actions .secondary-button { display: none; }.toast { right: 15px; bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 820px) { .relationship-panel { padding: 17px 15px 12px; }.relation-toolbar { display: block; }.relation-filters { margin-bottom: 10px; }.relationship-content { grid-template-columns: 1fr; }.relationship-detail { padding: 0 3px; }.relationship-map { min-height: 235px; } }
@media (max-width: 1180px) { .gift-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.gift-layout { grid-template-columns: minmax(0,1fr); }.calendar-panel { max-width: none; } }
@media (max-width: 820px) { .gift-quick-row { grid-template-columns: 1fr; }.gift-summary-card { min-height: 115px; }.ledger-panel, .calendar-panel { padding: 17px 15px 12px; } }
@media (max-width: 520px) { .gift-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.gift-summary-card { min-height: 128px; padding: 13px; gap: 8px; }.gift-summary-icon { width: 29px; height: 29px; flex-basis: 29px; }.gift-summary-icon i { width: 15px; height: 15px; }.gift-summary-card strong { font-size: 18px; }.gift-summary-card span:not(.gift-summary-icon):not(.summary-alert):not(.summary-calendar):not(.balance-badge) { font-size: 8px; }.summary-alert, .balance-badge { right: 9px; bottom: 9px; font-size: 8px; }.ledger-row { grid-template-columns: 35px minmax(0,1fr) 28px; gap: 8px; padding: 8px 0; }.ledger-amount, .ledger-status { display: none; }.ledger-row .row-more { justify-self: end; }.ledger-event-title h3 { font-size: 11px; }.ledger-note { max-width: 180px; }.form-two-col { grid-template-columns: 1fr; gap: 15px; } }
.ledger-return { display: inline-flex; margin-top: 6px; padding: 0; color: var(--orange-dark); background: transparent; font-size: 9px; font-weight: 700; }.ledger-return:hover { color: var(--ink); }
