@font-face{font-family:Satoshi;src:url("/app/branding/Satoshi-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Satoshi;src:url("/app/branding/Satoshi-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Satoshi;src:url("/app/branding/Satoshi-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/app/branding/JetBrainsMono-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face {
  font-family: "Clash Display";
  src: url("/app/branding/ClashDisplay-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #08162e;
  --lime: #d6ff57;
  --canvas: #f5f5f0;
  --paper: #fff;
  --steel: #5a6c7d;
  --line: #d9dfdf;
  --muted: #536578;
  --danger: #9b312c;
  --page-max: 1440px;
  font-family: Satoshi, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
:focus-visible { outline: 3px solid #678000; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; color: var(--ink); background: var(--lime); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 88px; height: auto; }
.brand-logo-light { width: 90px; }
.brand-product { padding-left: 9px; border-left: 1px solid #8493a1; color: var(--steel); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.sidebar-brand .brand-product, .mobile-header .brand-product { border-color: #6a7887; color: #e3eaf0; }
.eyebrow { margin: 0 0 9px; color: var(--steel); font-size: 12px; font-weight: 600; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(320px, .72fr); align-items: center; gap: 10%; width: min(1100px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0; }
.login-panel { width: min(100%, 450px); }
.login-copy { margin: 68px 0 34px; }
.login-copy h1 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; max-width: 430px; margin: 0 0 14px; font-size: clamp(34px, 4vw, 48px); line-height: 1.04; letter-spacing: -.06em; font-weight: 600; }
.login-copy > p:last-child { max-width: 380px; margin: 0; color: #41546a; font-size: 15px; line-height: 1.55; }
.form-stack, .dialog-form { display: grid; gap: 10px; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #aab5bf; border-radius: 3px; color: var(--ink); background: var(--paper); }
input::placeholder { color: #687889; }
textarea { resize: vertical; line-height: 1.45; }
.form-stack button { margin-top: 12px; }
.login-footnote { max-width: 370px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-aside { justify-self: end; width: min(100%, 330px); padding: 24px 0 0 25px; border-left: 1px solid #99a6b1; }
.login-aside .aside-rule { width: 36px; height: 5px; margin-bottom: 30px; background: var(--lime); }
.login-aside p { max-width: 300px; margin: 0 0 30px; font-size: 23px; line-height: 1.3; letter-spacing: -.035em; }
.login-aside span { color: var(--steel); font-size: 12px; }

.button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 700; transition: background-color .14s ease, border-color .14s ease; }
.button-primary { color: var(--ink); background: var(--lime); }
.button-primary:hover { background: #c9f34a; }
.button-secondary { color: var(--ink); background: transparent; border-color: #8493a1; }
.button-secondary:hover { background: #e8ece8; }
.text-action { padding: 8px 0; color: var(--danger); border: 0; background: transparent; font-size: 12px; font-weight: 700; text-align: left; }
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }

.app-shell { min-height: 100vh; max-width: var(--page-max); margin: 0 auto; }
.sidebar { position: fixed; top: 0; bottom: 0; display: flex; width: 232px; flex-direction: column; padding: 27px 18px 18px; color: #fff; background: var(--ink); }
.sidebar-brand { margin: 0 0 52px 7px; color: #fff; }
.nav-caption { margin: 0 0 12px 10px; color: #c4cfda; font-size: 11px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 3px; color: #e9eff3; background: transparent; font-size: 13px; text-align: left; }
.nav-item:hover { background: #142642; }
.nav-item.is-active { color: var(--ink); background: var(--lime); font-weight: 700; }
.nav-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid #36475d; }
.user-email { overflow: hidden; color: #d0dae3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.signout-button { width: fit-content; padding: 4px 0; border: 0; color: #e3eaf0; background: none; font-size: 12px; text-align: left; }
.signout-button:hover { color: var(--lime); }
.workspace { min-height: 100vh; margin-left: 232px; }
.mobile-header, .mobile-nav { display: none; }
.main-content { padding: 46px clamp(24px, 4vw, 56px) 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 32px; }
.page-heading h1 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; margin: 0; font-size: clamp(29px, 3vw, 39px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.view-tools { display: flex; align-items: center; gap: 10px; min-height: 50px; margin-bottom: 17px; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.view-tools select { width: auto; min-width: 180px; padding: 8px 32px 8px 10px; }
.select-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.result-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.contact-tools input { max-width: 390px; }

.opportunity-board { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 3px 2px 15px; scroll-snap-type: x proximity; }
.pipeline-column { flex: 0 0 245px; min-height: 250px; padding: 12px 11px 14px; border-top: 3px solid #718192; background: #e9ece8; scroll-snap-align: start; }
.pipeline-column:nth-child(3n + 2) { border-top-color: #83957a; }
.pipeline-column:nth-child(3n) { border-top-color: #a8aa73; }
.pipeline-column.is-selected { border-top-color: #6d8700; }
.column-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 2px 1px 12px; border-bottom: 1px solid #cbd2d1; }
.column-heading h2 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; overflow: hidden; margin: 0; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.column-count { color: var(--muted); font-size: 11px; }
.opportunity-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.opportunity-row { padding: 12px 11px 10px; border: 1px solid #d1d8d8; border-left: 2px solid #9eaab3; background: var(--paper); }
.opportunity-row h3 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; margin: 0 0 6px; font-size: 13px; line-height: 1.3; font-weight: 700; }
.deal-contact { margin: 0 0 8px; color: #405269; font-size: 11px; }
.deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.stage-move { width: 100%; margin-top: 9px; padding: 6px 8px; border: 1px solid #bac3c8; border-radius: 2px; font-size: 11px; }
.deal-status { width: 100%; margin-top: 9px; padding: 6px 8px; border: 1px solid #bac3c8; border-radius: 2px; background: #f6f8f7; color: var(--ink); font-size: 11px; }
.deal-status.status-won { border-color: #9aad55; background: #f2f7df; }
.deal-status.status-lost { border-color: #d0a4a0; background: #fbf0ef; }
.column-empty { margin: 14px 1px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.empty-state { width: min(100%, 510px); margin: 56px auto 0; padding: 24px 0; text-align: center; }
.empty-state h2 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.empty-state p { max-width: 410px; margin: 0 auto 18px; color: #465a6e; font-size: 13px; line-height: 1.55; }
.empty-state.compact { margin: 22px auto; padding: 20px 12px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 12px; color: var(--muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid #aeb9c0; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: #26384d; font-size: 12px; vertical-align: middle; }
.data-table tbody tr:hover { background: #ecefe9; }
.contact-name-button { padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; text-align: left; }
.contact-name-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.opportunity-total { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-action { min-height: 26px; padding: 5px 0; border: 0; color: #30465d; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }

.task-list { max-width: 900px; margin: 0; padding: 0; list-style: none; }
.task-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.task-check { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #5d7600; }
.task-title { margin: 0 0 5px; font-size: 13px; font-weight: 700; }
.task-context, .task-date { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.task-date { white-space: nowrap; }
.task-item.is-done .task-title { color: #647282; text-decoration: line-through; }

.notice { position: sticky; z-index: 2; top: 8px; margin: -17px 0 18px; padding: 11px 13px; border-left: 3px solid #698000; color: var(--ink); background: #eef5d9; font-size: 12px; line-height: 1.45; }
.notice.is-error { border-left-color: var(--danger); background: #f8e8e5; }
.dialog { width: min(520px, calc(100% - 28px)); max-height: min(88vh, 780px); padding: 0; border: 1px solid #aeb9c0; border-radius: 4px; color: var(--ink); background: var(--canvas); box-shadow: 0 18px 60px rgb(8 22 46 / 24%); }
.dialog::backdrop { background: rgb(8 22 46 / 48%); }
.dialog-form { gap: 9px; padding: 24px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 5px; }
.dialog-heading h2 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; margin: 0; font-size: 23px; letter-spacing: -.04em; font-weight: 600; }
.icon-button { width: 34px; height: 34px; border: 1px solid #aeb9c0; border-radius: 3px; color: var(--ink); background: var(--paper); font-size: 22px; line-height: 1; }
.optional { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.form-hint { margin: 0 0 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-dialog { width: min(600px, calc(100% - 28px)); }
.detail-meta { margin: 0; color: var(--muted); font-size: 12px; }
.detail-section { padding: 15px 0; border-top: 1px solid var(--line); }
.detail-section h3 {
  font-family: "Clash Display", "Space Grotesk", Inter, system-ui, sans-serif; margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.detail-section > p { margin: 0; color: #3d5066; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.plain-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plain-list li { color: #3d5066; font-size: 12px; line-height: 1.45; }
.note-form { display: grid; gap: 8px; padding: 15px 0; border-top: 1px solid var(--line); }
.note-form button { justify-self: start; }

@media (max-width: 900px) {
  .login-screen { width: min(100% - 40px, 600px); grid-template-columns: 1fr; gap: 50px; align-content: center; }
  .login-panel { width: 100%; }
  .login-copy { margin: 42px 0 28px; }
  .login-aside { justify-self: start; width: 100%; max-width: 440px; padding-top: 17px; }
  .login-aside .aside-rule { margin-bottom: 17px; }
  .login-aside p { max-width: 400px; margin-bottom: 15px; font-size: 18px; }
}

@media (max-width: 720px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 12px 18px; color: #fff; background: var(--ink); }
  .mobile-header .brand { color: white; font-size: 15px; }
  .mobile-header .brand-logo { width: 80px; }
  .mobile-header .signout-button { color: #e3eaf0; }
  .mobile-nav { position: sticky; z-index: 5; top: 0; display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: var(--ink); }
  .mobile-nav .nav-item { flex: 0 0 auto; min-height: 36px; padding: 8px 11px; font-size: 11px; white-space: nowrap; }
  .main-content { padding: 30px 16px 50px; }
  .page-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1 1 auto; }
  .view-tools { flex-wrap: wrap; }
  .view-tools select { min-width: 150px; }
  .opportunity-board { margin-right: -16px; padding-right: 16px; }
  .pipeline-column { flex-basis: min(78vw, 290px); }
  .data-table { min-width: 620px; }
  .task-item { grid-template-columns: 22px minmax(0, 1fr); }
  .task-date { grid-column: 2; }
  .dialog-form { padding: 19px; }
}

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

h1,h2,h3{font-family:"Clash Display",system-ui,sans-serif;font-weight:600}

.deal-meta>span:first-child,input[inputmode="decimal"]{font-family:"JetBrains Mono",monospace;font-weight:500}
