:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.72);
  --white: #ffffff;
  --ink: #17171a;
  --secondary: #74747b;
  --tertiary: #a5a5ac;
  --line: rgba(25, 25, 30, 0.08);
  --line-strong: rgba(25, 25, 30, 0.13);
  --blue: #007aff;
  --blue-dark: #0068dc;
  --green: #30a46c;
  --orange: #e88b19;
  --red: #df5656;
  --purple: #7759d8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 30px 80px rgba(20, 20, 35, 0.17), 0 4px 18px rgba(20, 20, 35, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .client-card { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.23;
  pointer-events: none;
}

.ambient-one { top: -220px; right: 8%; background: #b4ccff; }
.ambient-two { bottom: -260px; left: 22%; background: #d6c8ff; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 260px;
  flex-direction: column;
  padding: 31px 20px 24px;
  border-right: 1px solid var(--line);
  background: rgba(242, 242, 245, 0.68);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; }
.brand strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -0.45px; }
.brand small { display: block; margin-top: 3px; color: var(--secondary); font-size: 11px; }

.brand-mark {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1d1d20, #34343a);
  box-shadow: 0 6px 14px rgba(25, 25, 30, 0.2);
}

.brand-mark span { display: block; width: 3px; border-radius: 3px; background: #fff; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .6; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .8; }

.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 45px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #55555d;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover { background: rgba(255, 255, 255, .58); color: var(--ink); }
.nav-item:active { transform: scale(.985); }
.nav-item.active { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.nav-icon { display: grid; place-items: center; color: var(--secondary); }
.nav-count { color: var(--tertiary); font-size: 12px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; box-shadow: 0 0 0 4px currentColor; }
.status-dot.working { color: rgba(48, 164, 108, .13); background: var(--green); }
.status-dot.write { color: rgba(119, 89, 216, .13); background: var(--purple); }
.status-dot.waiting { color: rgba(232, 139, 25, .13); background: var(--orange); }
.status-dot.rejected { color: rgba(223, 86, 86, .13); background: var(--red); }

.sidebar-footer { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding: 17px 11px 0; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 10px; }
.mongo-state { display: flex; align-items: center; gap: 7px; color: var(--secondary); font-size: 11px; font-weight: 500; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #28b167; box-shadow: 0 0 0 3px rgba(40, 177, 103, .12); }

.main-content { min-width: 0; width: 100%; margin-left: 260px; }
.topbar {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 20px;
  padding: 22px 4.5vw;
  border-bottom: 1px solid var(--line);
}

.title-wrap { min-width: 170px; }
.eyebrow { margin: 0 0 5px; color: var(--secondary); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -1.1px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.search-box {
  display: flex;
  width: min(320px, 27vw);
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .02);
  color: var(--tertiary);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.search-box:focus-within { border-color: rgba(0, 122, 255, .3); background: #fff; box-shadow: 0 0 0 4px rgba(0, 122, 255, .08); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: var(--tertiary); }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #f5f5f6; color: #9999a0; font-family: inherit; font-size: 10px; white-space: nowrap; }

.primary-button, .secondary-button, .danger-button, .text-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  transition: transform .17s ease, background .17s ease, box-shadow .17s ease, opacity .17s ease;
}

.primary-button { min-height: 44px; padding: 0 17px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 5px 13px rgba(20, 20, 25, .15); }
.primary-button:hover { background: #2a2a2f; box-shadow: 0 7px 18px rgba(20, 20, 25, .19); transform: translateY(-1px); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.98); }
.primary-button:disabled { opacity: .5; cursor: wait; }
.secondary-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }
.secondary-button:hover { background: #fff; }
.danger-button { min-height: 42px; padding: 0 18px; border-radius: 12px; background: #e5484d; color: #fff; font-size: 13px; font-weight: 600; }
.text-button { padding: 8px; background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; }
.icon-button { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: rgba(237, 237, 240, .82); color: #525258; }
.icon-button:hover { background: #e5e5e9; }
.danger-icon { color: var(--red); }
.menu-button { display: none; }

[data-icon] svg, .primary-button svg, .secondary-button svg, .text-button svg { display: block; width: 17px; height: 17px; }

.content { width: min(1260px, 100%); margin: 0 auto; padding: 34px 4.5vw 70px; }
.overview-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  margin-bottom: 27px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 17px;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 1px 0 rgba(15, 15, 20, .03);
}
.overview-label { margin: 0 0 3px; color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.overview-value { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.overview-value small { color: var(--secondary); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.overview-divider { width: 1px; height: 36px; background: var(--line); }
.overview-spacer { flex: 1; }
.overview-hint { margin: 0; color: var(--tertiary); font-size: 11px; }

.client-grid { display: flex; flex-direction: column; gap: 9px; }
.client-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(205px, 1.2fr) minmax(175px, 1fr) 154px 104px 92px 20px;
  min-height: 88px;
  align-items: center;
  gap: 18px;
  padding: 13px 17px 13px 14px;
  border: 1px solid rgba(25, 25, 30, .07);
  border-left: 3px solid var(--row-accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.client-card.working { --row-accent: #61bc89; }
.client-card.write { --row-accent: #8a70df; }
.client-card.waiting { --row-accent: #eda843; }
.client-card.rejected { --row-accent: #e17073; }
.client-card:hover { transform: translateY(-1px); border-color: rgba(25, 25, 30, .11); border-left-color: var(--row-accent); box-shadow: 0 10px 26px rgba(20, 20, 30, .07); }
.client-card:active { transform: scale(.998); }
.client-card:focus-visible { outline: 3px solid rgba(0, 122, 255, .15); outline-offset: 2px; }
.client-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--avatar-bg, #ebf3ff); color: var(--avatar-fg, #3478c9); font-size: 15px; font-weight: 700; letter-spacing: -.4px; }
.client-title { min-width: 0; }
.client-card h3 { margin: 0 0 5px; overflow: hidden; font-size: 14px; line-height: 1.3; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.client-title > span { display: block; overflow: hidden; color: var(--tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.annoying-mark { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; background: #fff3e7; color: #bd6812; font-size: 9px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.annoying-mark svg { width: 12px; height: 12px; }
.contact-copy { display: grid; min-width: 0; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--secondary); text-align: left; cursor: pointer; }
.contact-copy:hover { background: #f3f3f5; color: var(--ink); }
.contact-copy-icon { display: grid; grid-row: 1 / 3; width: 25px; height: 25px; place-items: center; align-self: center; border-radius: 8px; background: #f0f0f3; color: #77777e; }
.contact-copy-icon svg { width: 13px; height: 13px; }
.contact-copy-value { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy small { margin-top: 2px; color: var(--tertiary); font-size: 8px; }
.quick-field { display: block; min-width: 0; }
.quick-label { display: block; margin-bottom: 5px; color: var(--tertiary); font-size: 8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.status-select { position: relative; display: flex; height: 31px; align-items: center; border-radius: 9px; }
.status-select select { z-index: 1; width: 100%; height: 100%; padding: 0 25px 0 10px; border: 0; outline: 0; appearance: none; background: transparent; color: inherit; font-size: 9px; font-weight: 600; cursor: pointer; }
.status-select > svg { position: absolute; right: 8px; width: 11px; height: 11px; pointer-events: none; transform: rotate(90deg); }
.status-select.working { background: #eaf7f0; color: #287f56; }
.status-select.write { background: #f1edff; color: #694fc3; }
.status-select.waiting { background: #fff4e6; color: #b86d18; }
.status-select.rejected { background: #fff0f0; color: #c64f53; }
.annoying-toggle { min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(248, 248, 249, .8); text-align: left; cursor: pointer; }
.annoying-toggle:hover { border-color: rgba(232, 139, 25, .25); background: #fffaf4; }
.annoying-toggle .quick-label { margin-bottom: 4px; }
.yes-no { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.yes-no i { width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; box-shadow: 0 0 0 3px rgba(160,160,168,.1); }
.annoying-toggle.active { border-color: rgba(232, 139, 25, .18); background: #fff7ed; color: #b96512; }
.annoying-toggle.active .quick-label { color: #c68a4e; }
.annoying-toggle.active .yes-no i { background: #ef951f; box-shadow: 0 0 0 3px rgba(239,149,31,.12); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.working { background: #eaf7f0; color: #287f56; }
.status-pill.write { background: #f1edff; color: #694fc3; }
.status-pill.waiting { background: #fff4e6; color: #b86d18; }
.status-pill.rejected { background: #fff0f0; color: #c64f53; }
.task-preview { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: var(--tertiary); font-size: 9px; white-space: nowrap; }
.task-preview svg { width: 13px; height: 13px; }
.task-preview span { overflow: hidden; text-overflow: ellipsis; }
.row-chevron { display: grid; place-items: center; color: #c0c0c5; }
.row-chevron svg { width: 14px; height: 14px; }

.empty-state { display: flex; min-height: 360px; align-items: center; justify-content: center; flex-direction: column; padding: 50px; text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 15px; border-radius: 18px; background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h2 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.4px; }
.empty-state p { max-width: 320px; margin: 0 0 19px; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.hidden { display: none !important; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; visibility: hidden; background: rgba(20, 20, 24, .13); opacity: 0; backdrop-filter: blur(2px); transition: opacity .25s, visibility .25s; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.client-drawer {
  position: fixed;
  z-index: 50;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(495px, calc(100vw - 20px));
  overflow-y: auto;
  padding: 16px 27px 30px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(250, 250, 252, .94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(160%) blur(34px);
  transform: translateX(calc(100% + 30px));
  transition: transform .35s cubic-bezier(.22,.85,.3,1);
}
.client-drawer.open { transform: translateX(0); }
.drawer-header { position: sticky; z-index: 4; top: -16px; display: flex; align-items: center; justify-content: space-between; margin: 0 -7px; padding: 16px 7px 12px; background: linear-gradient(rgba(250,250,252,.98) 78%, transparent); }
.drawer-actions { display: flex; align-items: center; gap: 6px; }
.drawer-hero { padding: 21px 3px 25px; border-bottom: 1px solid var(--line); text-align: center; }
.drawer-avatar { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 15px; border-radius: 22px; background: var(--avatar-bg); color: var(--avatar-fg); font-size: 23px; font-weight: 700; }
.drawer-hero h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.8px; }
.drawer-contact { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: var(--secondary); font-size: 12px; text-decoration: none; }
.drawer-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-contact svg { flex: 0 0 auto; width: 14px; height: 14px; }
.drawer-meta { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; }
.detail-section { padding: 24px 2px 2px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 13px; letter-spacing: -.2px; }
.section-title span { color: var(--tertiary); font-size: 10px; }
.note-card { min-height: 94px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #4f4f57; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.note-card.empty { color: var(--tertiary); font-style: italic; }

.task-form { display: flex; gap: 8px; margin-bottom: 11px; }
.task-form input { min-width: 0; width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #fff; font-size: 12px; transition: border .2s, box-shadow .2s; }
.task-form input:focus { border-color: rgba(0,122,255,.35); box-shadow: 0 0 0 3px rgba(0,122,255,.08); }
.task-form button { width: 42px; height: 42px; padding: 0; flex: 0 0 auto; }
.task-list { display: flex; flex-direction: column; gap: 7px; }
.task-item { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 9px 9px 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.74); }
.task-check { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; padding: 0; border: 1.5px solid #c7c7cc; border-radius: 50%; background: #fff; color: #fff; cursor: pointer; }
.task-check svg { width: 12px; height: 12px; opacity: 0; }
.task-item.completed .task-check { border-color: var(--green); background: var(--green); }
.task-item.completed .task-check svg { opacity: 1; }
.task-title { flex: 1; margin: 0; color: #393940; font-size: 11px; line-height: 1.4; }
.task-item.completed .task-title { color: var(--tertiary); text-decoration: line-through; }
.task-delete { width: 29px; height: 29px; border: 0; border-radius: 50%; background: transparent; color: #b2b2b8; cursor: pointer; opacity: 0; transition: opacity .18s, background .18s, color .18s; }
.task-delete svg { width: 14px; height: 14px; }
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { background: #fff0f0; color: var(--red); }
.tasks-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--tertiary); font-size: 11px; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; visibility: hidden; align-items: center; justify-content: center; padding: 18px; background: rgba(20, 20, 24, .25); opacity: 0; backdrop-filter: blur(5px); transition: opacity .22s, visibility .22s; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: 23px; background: rgba(252,252,253,.97); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.modal-header h2, .confirm-dialog h2 { margin: 0; font-size: 22px; letter-spacing: -.65px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin: 0 0 7px 2px; color: #55555d; font-size: 11px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; transition: border .2s, box-shadow .2s; }
.field input, .field select { height: 45px; padding: 0 13px; }
.field textarea { min-height: 98px; resize: vertical; padding: 12px 13px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(0,122,255,.38); box-shadow: 0 0 0 4px rgba(0,122,255,.08); }
.field input::placeholder, .field textarea::placeholder { color: #b3b3b8; }
.toggle-row { position: relative; display: flex; min-height: 56px; align-items: center; justify-content: space-between; margin-top: 5px; cursor: pointer; }
.toggle-row strong { display: block; font-size: 12px; }
.toggle-row small { display: block; margin-top: 3px; color: var(--secondary); font-size: 10px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 42px; height: 25px; flex: 0 0 auto; border-radius: 99px; background: #d7d7dc; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.toggle-row input:checked + .switch { background: #ff9500; }
.toggle-row input:checked + .switch::after { transform: translateX(17px); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.confirm-dialog { width: min(370px, 100%); padding: 32px; text-align: center; }
.confirm-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 17px; border-radius: 16px; background: #fff0f0; color: var(--red); }
.confirm-icon svg { width: 21px; height: 21px; }
.confirm-dialog p { margin: 8px 0 25px; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.confirm-dialog .form-actions { justify-content: center; margin-top: 0; }

.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 240px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 13px; background: rgba(30,30,33,.92); box-shadow: 0 12px 35px rgba(0,0,0,.2); color: #fff; font-size: 11px; animation: toastIn .28s ease both; backdrop-filter: blur(15px); }
.toast.error { background: rgba(190,50,55,.94); }
.toast svg { width: 15px; height: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.skeleton { min-height: 88px; border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.45) 30%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.45) 66%); background-size: 300% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }

@media (max-width: 1040px) {
  .client-card { grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 1fr) 145px 96px 20px; gap: 11px; }
  .client-card > .task-preview { display: none; }
  .overview-hint { display: none; }
}

@media (max-width: 760px) {
  .sidebar { width: 250px; transform: translateX(-105%); box-shadow: 10px 0 45px rgba(20,20,30,.14); transition: transform .28s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-button { display: inline-flex; }
  .topbar { min-height: 98px; padding: 18px 20px; }
  .header-actions { gap: 8px; }
  .search-box { width: 44px; padding: 0; justify-content: center; }
  .search-box input, .search-box kbd { display: none; }
  .search-box.mobile-open { position: absolute; z-index: 25; right: 20px; left: 20px; width: auto; padding: 0 12px; }
  .search-box.mobile-open input { display: block; }
  .title-wrap { min-width: 0; }
  h1 { font-size: 24px; }
  .primary-button { padding: 0 13px; }
  .primary-button > span:last-child { display: none; }
  .content { padding: 24px 20px 60px; }
  .overview-row { gap: 17px; padding: 12px 16px; }
  .client-card { grid-template-columns: minmax(180px, 1.2fr) minmax(145px, 1fr) 145px 96px 20px; }
}

@media (max-width: 560px) {
  .client-card { grid-template-columns: minmax(0, 1fr) 102px; grid-template-areas: "main annoying" "contact status"; min-height: 126px; gap: 10px 12px; padding: 13px; }
  .client-main { grid-area: main; }
  .contact-copy { grid-area: contact; padding: 5px 2px; }
  .quick-status { grid-area: status; }
  .annoying-toggle { grid-area: annoying; }
  .client-card > .task-preview, .row-chevron { display: none; }
  .overview-row { min-height: 69px; }
  .overview-spacer { display: none; }
  .overview-divider { margin-left: auto; }
  .overview-value { font-size: 18px; }
  .client-drawer { inset: 0; width: 100%; max-width: none; border: 0; border-radius: 0; }
  .modal { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
