@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;
  font: 16px 'DM Sans', sans-serif;
  font-synthesis: none;
  color: #f4f3f8;
  background: #08090d;
  --background: #08090d;
  --surface: #15161d;
  --column: #11131b;
  --line: #2a2c38;
  --muted: #a2a4b5;
  --white: #f4f3f8;
  --blue: #3f6dff;
  --violet: #7661ee;
  --yellow: #f4d941;
  --pale-yellow: #fff1a8;
  --coral: #ffb2ad;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; border: 0; background: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
button:active { transform: translateY(1px); }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--pale-yellow); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
i { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
i svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sidebar { width: 234px; background: #08090d; position: fixed; inset: 0 auto 0 0; border-right: 1px solid var(--line); padding: 25px 17px 0; display: flex; flex-direction: column; z-index: 5; overflow-y: auto; scrollbar-width: thin; }
.brand { display: inline-flex; align-items: center; margin: 0 12px 37px; width: fit-content; }
.brand img { display: block; width: 164px; height: 64px; object-fit: contain; }
.workspace { display: none; }
.nav-label { color: #a6a9ba; font-size: 12px; font-weight: 650; letter-spacing: 1px; margin: 0 12px 13px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid transparent; border-radius: 7px; color: #c1c3d1; text-align: left; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.nav-item:hover { background: #171824; color: var(--white); }
.nav-item.active { background: #262044; color: #eee9ff; border-color: #4c4084; }
.nav-item.active i { color: #b49dff; }
.nav-item .nav-count, .nav-item .tiny { margin-left: auto; }
.nav-count { border-radius: 5px; min-width: 22px; padding: 2px 5px; text-align: center; font-size: 12px; background: #3c3165; color: #ddd5ff; }
.nav-count.red { background: #382026; color: #ffb2ad; }
.tiny { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.orange { background: var(--yellow); }
.green { background: #ab98f3; }
.sidebar-line { height: 1px; flex-shrink: 0; background: var(--line); margin: 24px 8px; }
.client-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 13px; color: #bbbccc; font-size: 14px; text-align: left; width: 100%; border-radius: 6px; }
.client-nav-item:hover, .client-nav-item.selected { background: #191a26; color: var(--white); }
.client-color { width: 8px; height: 8px; border: 2px solid #7896ff; border-radius: 2px; flex-shrink: 0; }
.client-nav-item:nth-child(2n) .client-color { border-color: #b09afa; }
.client-nav-item:nth-child(3n) .client-color { border-color: var(--pale-yellow); }
.sidebar-bottom { margin-top: auto; padding-top: 27px; }
.save-note { display: flex; gap: 9px; padding: 12px 9px; border: 1px solid #272934; border-radius: 7px; background: #111219; color: #a79ccf; margin-bottom: 13px; }
.save-note strong { display: block; color: #c2bfd4; font-size: 12px; font-weight: 500; }
.save-note small { display: block; font-size: 11px; color: #9495a9; margin-top: 5px; }
.save-note i svg { width: 17px; }
.sidebar-bottom .nav-item { padding: 8px 11px; min-height: 36px; font-size: 13px; margin: 0; }
.sidebar-bottom .nav-item i svg { width: 16px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 20px 8px; margin-top: 17px; border-top: 1px solid var(--line); }
.avatar { display: inline-grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; background: #b39af4; color: #191222; font-size: 13px; font-weight: 600; }
.profile strong { display: block; font-size: 14px; font-weight: 500; }
.profile small { display: block; font-size: 12px; color: #a2a0b6; margin-top: 4px; }
.online-dot { width: 7px; height: 7px; background: #a58ee8; border-radius: 50%; margin-left: auto; }

main { margin-left: 234px; min-height: 100vh; }
.topbar { height: 63px; display: flex; align-items: center; justify-content: space-between; padding: 0 31px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #a5a7b9; font-size: 14px; }
.breadcrumb i { display: none; }
.breadcrumb strong { font-weight: 600; color: #e8e7f0; }
.slash { color: #626679; }
.local-save { display: flex; gap: 7px; align-items: center; font-size: 12px; color: #a6a5b9; }
.mobile-backup { display: none; }
.page-intro { display: flex; align-items: center; justify-content: space-between; padding: 27px 31px 23px; gap: 18px; }
.eyebrow { color: #b1b2c6; font-size: 12px; letter-spacing: 1.5px; font-weight: 650; }
.page-intro h1 { font-family: Manrope, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.15; margin: 8px 0 9px; }
.heading-dot { color: var(--yellow); }
.page-intro p { color: #b2b3c5; font-size: 16px; margin: 0; line-height: 1.5; }
.intro-right { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.date-label { font-size: 14px; color: #c6c4d3; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 11px 17px; border-radius: 7px; color: #14130b; background: var(--yellow); font-size: 14px; font-weight: 700; }
.primary:hover { background: #ffe56b; }
.primary i svg { width: 17px; stroke-width: 2; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 0 31px 25px; }
.stat { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: left; }
.stat:hover { background: #1b1c26; border-color: #414455; }
.stat-icon { display: inline-flex; width: 33px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; }
.stat-icon i svg { width: 27px; height: 27px; stroke-width: 1.7; }
.neutral { color: #5da3ff; }
.amber { color: var(--yellow); }
.rose { color: #ff9690; }
.mint { color: #b19af3; }
.stat div > span { color: #c4c3d3; font-size: 14px; }
.stat strong { display: block; font-family: Manrope, sans-serif; font-size: 29px; line-height: 1.3; font-weight: 750; margin-top: 3px; }
.stat small, .stat-decoration { display: none; }
.board-section { margin: 0 31px; }
.board-title-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; gap: 25px; }
.view-tab { position: relative; display: flex; align-items: center; gap: 7px; color: #a9a9bf; font-size: 15px; padding: 0 3px 15px; }
.view-tab i { display: none; }
.view-tab.active { color: var(--white); font-weight: 650; }
.view-tab.active::after { position: absolute; bottom: -1px; left: 0; right: 0; content: ''; height: 3px; background: var(--yellow); }
.board-hint { display: flex; align-items: center; gap: 6px; color: #a4a5ba; font-size: 13px; padding-bottom: 14px; }
.board-hint i svg { width: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin: 18px 0; }
.filter-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.search { display: flex; align-items: center; gap: 9px; width: 275px; height: 38px; padding: 0 11px; border: 1px solid #3b3e4d; border-radius: 6px; background: #101117; color: #a9a9bd; }
.search i svg { width: 17px; }
.search input { min-width: 0; width: 100%; border: 0; background: none; font-size: 14px; color: var(--white); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.search input::placeholder { color: #a8a8bb; }
kbd { border: 1px solid #343644; border-radius: 3px; padding: 0 4px; color: #999bad; font: 12px 'DM Sans', sans-serif; }
.select-wrap { display: flex; align-items: center; height: 38px; padding-left: 10px; border: 1px solid #3b3e4d; border-radius: 6px; background: #101117; color: #a9a9bd; }
.select-wrap i svg { width: 14px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23c2bfd4' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
.select-wrap select { height: 100%; max-width: 180px; padding: 0 28px 0 7px; color: #dddbe8; background-color: transparent; border: 0; font-size: 14px; }
select option { color: #f4f3f8; background: #1c1e28; }
.filter-button { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; color: #dddbe8; background: #101117; border: 1px solid #3b3e4d; border-radius: 6px; font-size: 14px; }
.filter-button i svg { width: 14px; }
.filter-button:hover { background: #1c1c28; }
.filter-button[aria-pressed=true] { background: #332f17; border-color: #8b7936; color: var(--pale-yellow); }
.clear-filter { color: var(--pale-yellow); font-size: 13px; text-decoration: underline; }
.result-count { color: #a9a8bd; font-size: 13px; white-space: nowrap; }
.active-filter { padding: 10px 12px; margin-bottom: 16px; background: #212033; color: #c7b8ff; border: 1px solid #403856; border-radius: 6px; font-size: 14px; }

.board { display: grid; grid-template-columns: repeat(5, minmax(252px, 1fr)); align-items: stretch; gap: 13px; min-height: 470px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: #434052 transparent; scroll-snap-type: x proximity; }
.column { padding: 0 10px 11px; background: var(--column); border: 1px solid #272a36; border-radius: 9px; min-height: 450px; scroll-snap-align: start; }
.column.drag-over { background: #262331; border: 1px dashed var(--yellow); }
.column-header { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 12px 2px; }
.column-header h2 { color: #e5e3ef; font-size: 15px; font-weight: 650; margin: 0; white-space: nowrap; }
.column-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--yellow); flex-shrink: 0; }
.column[data-status=today] .column-dot { background: #4988ff; }
.column[data-status=progress] .column-dot { background: #ac89f5; }
.column[data-status=later] .column-dot { background: #6a77ff; }
.column[data-status=done] .column-dot { background: #b7a2ff; }
.column-count { color: #c3c1d4; background: #292c39; padding: 2px 5px; border-radius: 4px; font-size: 12px; }
.column-header .icon-button { width: 21px; height: 21px; margin-left: auto; color: #9a99af; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 5px; }
.icon-button:hover { background: #2b2b3b; }
.icon-button i svg { width: 15px; }
.cards { display: flex; flex-direction: column; gap: 9px; min-height: 35px; }
.task-card { padding: 12px 12px 11px; background: #1b1d27; border: 1px solid #303340; border-radius: 7px; cursor: grab; transition: background .15s, border-color .15s, transform .15s; }
.task-card:hover { background: #232430; border-color: #56516d; transform: translateY(-2px); }
.task-card:focus-visible { outline: 2px solid var(--pale-yellow); }
.task-card.urgent { border-color: #494431; }
.task-card.dragging { opacity: .45; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; margin-bottom: 6px; }
.category { color: #b1b3c7; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.urgent-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; color: #1c1905; background: var(--yellow); font-size: 12px; font-weight: 650; line-height: 1.2; }
.urgent-badge i svg { width: 10px; height: 10px; stroke-width: 2; }
.task-card h3 { margin: 0 0 7px; color: #f4f2fa; font-size: 16px; font-weight: 650; letter-spacing: -.2px; line-height: 1.4; overflow-wrap: anywhere; }
.task-client { display: flex; align-items: flex-start; gap: 5px; color: #c5c2d4; font-size: 14px; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
.task-client i { margin-top: 2px; }
.task-client i svg { width: 14px; height: 14px; }
.task-card .description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: #b2adc4; line-height: 1.5; margin: 0 0 10px; }
.task-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.assignee { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #d4cee6; overflow-wrap: anywhere; }
.assignee .avatar { width: 23px; height: 23px; font-size: 12px; }
.deadline { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; color: #cdcbd8; background: #292c39; padding: 3px 5px; font-size: 14px; line-height: 1.3; }
.deadline i svg { width: 13px; height: 13px; }
.deadline.today { color: var(--pale-yellow); background: #3b3725; }
.deadline.late { color: #ffb6af; background: #43282e; }
.deadline.complete { color: #d6c8ff; background: #352b49; }
.column-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; margin-top: 11px; border: 1px dashed #373746; border-radius: 6px; color: #a8a4b9; font-size: 14px; }
.column-add:hover { background: #21202d; color: #ddd3f2; }
.column-add i svg { width: 14px; height: 14px; }
.empty-column { text-align: center; padding: 90px 12px 45px; color: #aaa6c0; }
.empty-column > i { width: 47px; height: 47px; margin-bottom: 15px; }
.empty-column > i svg { width: 40px; height: 40px; stroke-width: 1.3; }
.empty-column strong { display: block; color: #c6c0d7; font-size: 14px; font-weight: 450; line-height: 1.6; }
.empty-column p { color: #a19cb3; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.board-footer { display: flex; justify-content: space-between; gap: 20px; color: #a19baf; font-size: 12px; padding: 18px 0 24px; }
.board-footer span:first-child { display: flex; align-items: center; gap: 6px; }
.board-footer i svg { width: 13px; height: 13px; }
#list-view { overflow-x: auto; }
.list-table { width: 100%; background: #15161e; border: 1px solid var(--line); border-collapse: collapse; text-align: left; font-size: 14px; }
.list-table th { background: #1e202c; padding: 14px; color: #b9b2cd; font-size: 14px; font-weight: 500; }
.list-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); color: #d7d0e4; }
.list-table tr[data-id] { cursor: pointer; }
.list-table tr[data-id]:hover { background: #232033; }
.list-table .urgent-badge { margin: 4px 0; }
.list-table .deadline { width: max-content; }
.empty-results { padding: 40px; color: #b7aecb; text-align: center; font-size: 14px; }

dialog { width: min(580px, calc(100% - 28px)); border: 1px solid #414052; border-radius: 13px; background: #15161e; color: var(--white); padding: 27px; box-shadow: 0 20px 100px #0009; }
dialog::backdrop { background: #030309b3; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.dialog-header h2 { font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.7px; margin: 9px 0 0; }
.dialog-header .eyebrow { font-size: 11px; color: #b6a2f0; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: #c7bfd9; margin-bottom: 18px; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; border: 1px solid #424151; border-radius: 6px; background-color: #0e0f17; color: #ece7f6; padding: 11px 12px; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #9b94b0; }
.field select { padding-right: 28px; }
.field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px; margin-bottom: 16px; border: 1px solid #39342b; border-radius: 7px; background: #252319; }
.toggle-row strong { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pale-yellow); }
.toggle-row strong i svg { width: 13px; height: 13px; }
.toggle-row small { display: block; font-size: 12px; color: #c3bca1; margin-top: 5px; }
.toggle-row input { appearance: none; width: 36px; height: 21px; border-radius: 20px; background: #535062; position: relative; cursor: pointer; flex-shrink: 0; }
.toggle-row input::before { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; transition: left .15s; }
.toggle-row input:checked { background: var(--yellow); }
.toggle-row input:checked::before { left: 18px; background: #252018; }
.checkbox-row { display: flex; align-items: center; gap: 8px; color: #bfb6ce; font-size: 12px; line-height: 1.5; }
.checkbox-row input { accent-color: var(--yellow); }
.dialog-footer { display: flex; align-items: center; gap: 8px; padding-top: 23px; margin-top: 20px; border-top: 1px solid var(--line); }
.dialog-footer > span { flex: 1; }
.danger-button { font-size: 12px; color: #ffaaa5; padding: 8px 0; }
.danger-button:hover { color: #ffc7bf; }
.secondary { padding: 10px 14px; color: #ded5ef; background: #21202d; border: 1px solid #434050; border-radius: 6px; font-size: 14px; }
.secondary:hover { background: #302b3f; }
#delete-dialog { max-width: 390px; }
#delete-dialog h2 { font-size: 21px; }
#delete-dialog p { font-size: 14px; color: #bfb4cf; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 15px; }
.delete-confirm { background: #a8444a; color: white; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.delete-confirm:hover { background: #be555a; }
.toast { position: fixed; z-index: 30; left: calc(50% + 117px); bottom: 25px; max-width: 90vw; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: #302741; border: 1px solid #695082; border-radius: 8px; padding: 12px 20px; color: #f5edff; font-size: 14px; text-align: center; box-shadow: 0 5px 30px #0006; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1700px) {
  .sidebar { width: 244px; }
  main { margin-left: 244px; }
  .page-intro, .topbar { padding-left: 34px; padding-right: 34px; }
  .board-section { margin-left: 34px; margin-right: 34px; }
  .stats { margin-left: 34px; margin-right: 34px; }
  .intro-right { flex-direction: row; align-items: center; gap: 25px; }
  .page-intro h1 { font-size: 46px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .brand img { width: 150px; height: 59px; }
  main { margin-left: 200px; }
  .topbar { padding: 0 24px; }
  .page-intro { padding: 27px 24px 23px; }
  .page-intro h1 { font-size: 35px; }
  .page-intro p { font-size: 14px; }
  .stats { margin: 0 24px 25px; gap: 10px; }
  .stat { gap: 9px; padding: 14px 12px; }
  .stat div > span { font-size: 14px; }
  .stat-icon { width: 23px; }
  .stat-icon i svg { width: 23px; height: 23px; }
  .board-section { margin: 0 24px; }
  .board-hint { display: none; }
  .search { width: 250px; }
  .toast { left: calc(50% + 100px); }
}
@media (max-width: 760px) {
  .sidebar { position: static; flex-direction: row; align-items: center; gap: 20px; width: auto; padding: 15px 20px; overflow: visible; border: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; }
  .brand img { width: 112px; height: 44px; }
  .sidebar .nav-label, .sidebar .sidebar-line, .sidebar #client-nav, .sidebar .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; margin-left: auto; }
  .nav-item { width: auto; min-height: 36px; margin: 0; padding: 8px; gap: 0; font-size: 0; }
  .nav-item .nav-count, .nav-item .tiny { display: none; }
  .nav-item i svg { width: 18px; height: 18px; }
  .nav-item:nth-child(n+4) { display: none; }
  main { margin: 0; }
  .topbar { height: 51px; padding: 0 20px; }
  .breadcrumb { font-size: 12px; gap: 8px; }
  .local-save { display: none; }
  .mobile-backup { display: flex; gap: 4px; margin-left: auto; color: #b6add0; }
  .page-intro { padding: 25px 20px; align-items: flex-start; gap: 12px; }
  .page-intro h1 { font-size: 31px; }
  .page-intro p { max-width: 205px; font-size: 14px; line-height: 1.5; }
  .eyebrow { font-size: 10px; letter-spacing: 1.1px; }
  .intro-right { gap: 14px; padding-top: 2px; }
  .date-label { font-size: 12px; text-align: right; max-width: 135px; line-height: 1.5; }
  .intro-right .primary { font-size: 14px; padding: 10px 11px; white-space: nowrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 20px 25px; }
  .stat { min-height: 85px; padding: 13px 12px; gap: 10px; }
  .stat strong { font-size: 27px; }
  .stat div > span { font-size: 14px; }
  .board-section { margin: 0 20px; }
  .toolbar { display: block; }
  .filter-controls { gap: 7px; }
  .search { width: 100%; margin-bottom: 4px; }
  .select-wrap { flex: 1; min-width: 0; padding-left: 8px; }
  .select-wrap > i { display: none; }
  .select-wrap select { width: 100%; max-width: 155px; padding-left: 4px; padding-right: 24px; }
  .filter-button { padding: 0 9px; }
  .filter-button i { display: none; }
  .result-count { display: block; text-align: right; font-size: 12px; margin-top: 13px; }
  .board { grid-template-columns: repeat(5, 280px); gap: 12px; }
  .board-footer { font-size: 12px; }
  .board-footer span:last-child { display: none; }
  .list-table th, .list-table td { padding: 12px 9px; }
  .list-table th:nth-child(3), .list-table td:nth-child(3) { display: none; }
  dialog { padding: 22px 18px; }
  .dialog-header h2 { font-size: 23px; }
  .dialog-header .eyebrow { font-size: 10px; letter-spacing: .8px; }
  .form-grid { gap: 0 12px; }
  .field input, .field select, .field textarea { padding: 10px; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer > .primary, .dialog-footer > .secondary { font-size: 14px; padding: 10px 12px; }
  .danger-button { font-size: 12px; }
  .toggle-row { gap: 12px; }
  .checkbox-row { align-items: flex-start; }
  .toast { left: 50%; }
}
@media (max-width: 360px) {
  .page-intro { flex-wrap: wrap; }
  .intro-right { flex-direction: row; width: 100%; align-items: center; justify-content: space-between; padding-top: 5px; }
  .date-label { text-align: left; }
  .stat { gap: 6px; padding-left: 10px; }
  .stat-icon { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.description a { color: var(--pale-yellow); text-decoration: underline; overflow-wrap: anywhere; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 20% 0%, #1d1831 0%, #08090d 55%); }
.login-card { width: min(100%, 430px); padding: 32px; border: 1px solid #353244; border-radius: 15px; background: #12131b; }
.login-card > img { display: block; margin-bottom: 34px; }
.login-card h1 { font: 750 29px/1.25 Manrope, sans-serif; letter-spacing: -.8px; margin: 12px 0; }
.login-card > p { font-size: 16px; color: #b2adc3; line-height: 1.5; margin: 0 0 26px; }
.login-card .primary { width: 100%; margin-top: 4px; }
.login-card > small { display: block; font-size: 12px; color: #a6a0b8; line-height: 1.6; margin-top: 22px; }
.login-card .eyebrow { font-size: 11px; }
.form-error, .sync-warning { color: #ffc5bd; background: #39242b; border: 1px solid #65434a; border-radius: 6px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.sync-warning { color: var(--pale-yellow); background: #302b20; border-color: #5b5134; margin: 0 0 16px; }
button:disabled { cursor: wait; opacity: .6; transform: none; }
.field input:disabled, .field textarea:disabled, .field select:disabled { color: #bdb3cf; opacity: 1; background-color: #1b1824; }
.readonly-note, .account-help { font-size: 14px; color: #c1b5d3; line-height: 1.65; }
.read-only-card { cursor: pointer; }
.owners-field { border: 0; padding: 0; min-width: 0; }
.owners-field legend { padding: 0; margin-bottom: 9px; }
.owner-options { display: flex; flex-wrap: wrap; gap: 7px; }
.owner-choice { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #484054; background: #201c2c; border-radius: 6px; font-size: 14px; }
.owner-choice input { accent-color: var(--yellow); margin: 0; width: 14px; height: 14px; }
.owner-choice:has(input:checked) { border-color: #8c7944; background: #332c20; color: var(--pale-yellow); }
.avatar-stack { display: inline-flex; padding-right: 2px; }
.avatar-stack .avatar:not(:first-child) { margin-left: -6px; border: 1px solid #1b1d27; }
.assignee > span:last-child { line-height: 1.4; }
.account-actions { display: flex; align-items: center; gap: 12px; }
.account-menu { display: flex; flex-direction: column; gap: 12px; }
.user-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.user-row > div { flex: 1; }
.user-row strong { font-size: 16px; }
.user-row small { display: block; font-size: 12px; color: #ada1bf; margin-top: 4px; }
.user-row button { font-size: 12px; }
.temporary-password { margin-top: 20px; padding: 16px; border: 1px solid #68603c; border-radius: 8px; background: #29251b; }
.temporary-password > strong { display: block; margin-bottom: 16px; color: var(--pale-yellow); }
.temporary-password > small { display: block; font-size: 12px; line-height: 1.6; color: #c6bd9e; margin-top: 13px; }
.temporary-password input { font-family: ui-monospace, monospace; }
.sidebar { padding-top: 20px; }
.brand { margin-bottom: 25px; }
.sidebar-bottom { padding-top: 18px; }
@media(max-height: 850px) and (min-width: 761px) { .brand img { width: 142px; height: 55px; } .brand { margin-bottom: 22px; } .sidebar-line { margin-top: 16px; margin-bottom: 16px; } .save-note { display: none; } .sidebar-bottom { padding-top: 18px; } .profile { padding: 14px 8px; margin-top: 12px; } }
@media(max-width: 760px) { .login-card { padding: 26px 22px; } .login-card h1 { font-size: 26px; } .brand { margin-bottom: 0; } .account-actions { gap: 4px; } .topbar .mobile-backup { margin-left: auto; } .user-row { gap: 8px; } .user-row button { padding: 9px; } .owner-choice { padding: 7px 8px; } }
.intro-actions { display: flex; align-items: center; gap: 10px; }
.voice-task-button { display: inline-flex; align-items: center; gap: 7px; min-height: 41px; border-color: #5a4b81; background: #282039; color: #e4d9ff; }
.voice-task-button:hover { background: #392c4b; }
.voice-task-button i svg { width: 17px; height: 17px; }
.voice-dialog { width: min(650px, calc(100% - 28px)); max-height: calc(100dvh - 32px); }
.voice-record-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.voice-status { min-height: 24px; margin: 13px 0 18px; color: #c6b5e0; font-size: 14px; line-height: 1.5; }
.voice-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -5px 0 17px; font-size: 12px; color: #b8adc9; }
.voice-example { font-size: 12px; padding: 5px 8px; border: 1px solid #443951; border-radius: 5px; color: #d8c8ed; }
.voice-example:hover { background: #30253d; }
#voice-choice-field { margin-top: 20px; }
.voice-preview { border: 1px solid #60513a; border-radius: 9px; background: #242118; padding: 17px; margin-top: 20px; }
.voice-preview h3 { margin: 0 0 15px; font-size: 16px; color: var(--pale-yellow); }
.voice-preview dl { margin: 0; }
.voice-preview dl > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #443d2c; padding: 9px 0; }
.voice-preview dl > div:last-child { border-bottom: 0; }
.voice-preview dt { color: #bcb39a; font-size: 14px; }
.voice-preview dd { margin: 0; color: #f5eedb; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.voice-apply-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.voice-footnote { font-size: 12px; line-height: 1.6; color: #a49ab3; margin: 18px 0 0; }
@media(max-width:760px) { .intro-actions { flex-direction: column; align-items: stretch; gap: 8px; } .voice-task-button { justify-content: center; padding: 10px 11px; white-space: nowrap; } .voice-dialog { padding: 22px 18px; } .voice-preview { padding: 13px; } .voice-preview dl > div { grid-template-columns: 90px minmax(0, 1fr); gap: 8px; } }
@media(max-width:360px) { .intro-actions { flex-direction: row; flex-wrap: wrap; } }
/* Clientes e vendas */
.crm-board{display:grid;grid-template-columns:repeat(6,minmax(260px,1fr));gap:18px;overflow-x:auto;padding:8px 0 24px;align-items:start}.crm-column{min-height:410px;border-radius:14px;background:#111219;padding:14px;border:1px solid #232530}.crm-column:nth-child(2) .column-dot{background:#5995ff}.crm-column:nth-child(3) .column-dot{background:#8981ff}.crm-column:nth-child(4) .column-dot{background:#f6e896}.crm-column:nth-child(5) .column-dot{background:#6dd9ac}.crm-column:nth-child(6) .column-dot{background:#b07888}.crm-card{display:block;width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.crm-card .task-client{margin:10px 0}.crm-value{display:block;margin:16px 0;color:#f6e896}.crm-card-bottom{display:flex;flex-direction:column;gap:7px;border-top:1px solid #2a2b35;padding-top:12px;font-size:12px;color:#a3a7b8}.crm-registers{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;padding:20px 0}.crm-register{text-align:left;color:inherit;font:inherit;cursor:pointer}.crm-register p{color:#b9bccb;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:15px 0}.crm-register small{color:#9da4b6;overflow-wrap:anywhere}.crm-toolbar{gap:12px;flex-wrap:wrap}.crm-toolbar .search{min-width:220px}.crm-toolbar select{background:#171923;color:#d9dcec;border:1px solid #303440;border-radius:8px;padding:10px;max-width:100%}#crm-deal-filters{display:flex;gap:10px;flex-wrap:wrap}#crm-stats .stat strong{font-size:26px}#crm-stats .stat small{display:block;margin-top:6px;color:#9ca3b8}.crm-delete-confirm{padding:16px;background:#2d1b23;border-radius:10px;margin:16px 0}.crm-delete-confirm p{margin-bottom:14px}#crm-dialog{max-width:680px;width:calc(100% - 32px)}#crm-content .cards{min-height:300px}#sales-panel .page-intro{gap:20px}#sales-panel h1{font-size:clamp(28px,3vw,42px)}@media(max-width:768px){#sales-panel .page-intro{align-items:flex-start;flex-direction:column}#sales-panel .board-title-row{align-items:flex-start;gap:15px;flex-direction:column}.crm-board{grid-template-columns:repeat(6,280px)}#crm-stats .stat strong{font-size:22px}.crm-toolbar .search{width:100%}#crm-deal-filters select{flex:1;min-width:0}#crm-deal-filters{width:100%}}
@media(max-width:760px){.sidebar #open-sales{display:flex}.sidebar nav{gap:2px}.sidebar{gap:10px}.crm-toolbar .search{min-width:0}#sales-panel .view-tabs{flex-wrap:wrap}#sales-panel .view-tab{font-size:12px;padding:10px 8px}}
