:root{--bg:#f4f5f7;--surface:#fff;--column:#e9ecf1;--ink:#12172b;--ink-2:#3a4256;--muted:#4a5368;--line:#d9dde5;--line-strong:#c5cad6;--accent:#3445e0;--accent-hover:#2a38bf;--accent-soft:#e8eaff;--danger:#b4232c;--danger-soft:#fbecec;--ok:#0b7a5a;--ok-soft:#e3f4ee;--navy:#12172b;--navy-line:#2b3350;--on-navy:#fff;--on-navy-muted:#c9cfdd;--radius:12px;--shadow:0 30px 60px #12172b38;--font-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;--font-body:"IBM Plex Sans","Segoe UI",system-ui,sans-serif;--font-mono:"IBM Plex Mono",Consolas,monospace;font-family:var(--font-body);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;color:var(--ink);margin:0;font-size:15px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea{font-family:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.page-loading{color:var(--muted);padding:32px}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;animation:.7s linear infinite spinner-rotate;display:inline-block}@keyframes spinner-rotate{to{transform:rotate(360deg)}}.btn{font:inherit;cursor:pointer;white-space:nowrap;border:1.5px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;font-weight:600;line-height:1;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn--sm{min-height:36px;padding:0 12px;font-size:14px}.btn--md{min-height:44px;padding:0 18px;font-size:15px}.btn--lg{border-radius:12px;min-height:52px;padding:0 24px;font-size:17px}.btn--primary{background:var(--accent);color:#fff}.btn--primary:hover:not(:disabled){background:var(--accent-hover)}.btn--secondary{background:var(--surface);border-color:var(--ink);color:var(--ink)}.btn--secondary:hover:not(:disabled){background:var(--bg)}.btn--ghost{border-color:var(--line-strong);color:var(--ink);background:0 0}.btn--ghost:hover:not(:disabled){background:var(--surface);border-color:var(--ink)}.btn--danger{border-color:var(--danger);color:var(--danger);background:0 0}.btn--danger:hover:not(:disabled){background:var(--danger-soft)}.btn--loading{cursor:progress}.btn__content{align-items:center;gap:8px;display:inline-flex}.landing{background:var(--bg);color:var(--ink);font-size:17px;line-height:1.55}.landing__inner{flex-direction:column;gap:96px;max-width:1160px;margin:0 auto;padding:0 24px;display:flex}.landing h1,.landing h2,.landing h3{font-family:var(--font-display);text-wrap:balance;margin:0;font-weight:700}.landing p{margin:0}.eyebrow{font-family:var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-size:13px}.landing a.btn:hover{text-decoration:none}.landing-nav{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding:20px 0;display:flex}.landing-brand{color:var(--ink);font-family:var(--font-display);align-items:center;gap:10px;font-size:22px;font-weight:700;display:inline-flex}.landing-brand:hover{text-decoration:none}.landing-nav__links{flex-wrap:wrap;align-items:center;gap:8px 26px;font-size:16px;display:flex}.landing-nav__links a{color:var(--ink);padding:10px 0}.hero{flex-wrap:wrap;align-items:center;gap:48px;display:flex}.hero__copy{flex-direction:column;flex:420px;gap:22px;min-width:0;display:flex}.hero h1{letter-spacing:-.02em;font-size:clamp(40px,5.4vw,68px);line-height:1.02}.hero__lead{color:var(--ink-2);max-width:30em;font-size:20px}.hero__actions{flex-wrap:wrap;gap:12px;display:flex}.hero__note{color:var(--muted);font-size:15px}.preview{background:var(--navy);min-width:0;box-shadow:var(--shadow);border-radius:20px;flex-direction:column;flex:480px;gap:14px;padding:18px;display:flex}.preview__bar{color:var(--on-navy-muted);font-family:var(--font-mono);justify-content:space-between;font-size:12px;display:flex}.preview__cols{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.preview__col{flex-direction:column;gap:8px;min-width:0;display:flex}.preview__col-title{color:var(--on-navy);white-space:nowrap;align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:flex}.dot{border-radius:50%;flex:none;width:8px;height:8px}.preview__card{background:var(--surface);border-radius:10px;flex-direction:column;gap:3px;padding:10px;line-height:1.3;display:flex}.preview__card strong{font-size:13px;font-weight:600}.preview__card span{color:var(--muted);font-size:12px}.preview__card small{font-family:var(--font-mono);color:var(--muted);margin-top:4px;font-size:10.5px}.section{flex-direction:column;gap:36px;display:flex}.section__title{letter-spacing:-.015em;max-width:18em;font-size:clamp(30px,3.6vw,44px);line-height:1.08}.features{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;display:grid}.feature{background:var(--surface);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:12px;padding:28px;display:flex}.feature h3{font-size:24px;line-height:1.15}.feature p{color:var(--ink-2)}.ai-demo{background:var(--surface);border:1px solid var(--line);border-radius:24px;flex-wrap:wrap;align-items:center;gap:40px;padding:clamp(24px,4vw,48px);display:flex}.ai-demo__copy{flex-direction:column;flex:340px;gap:16px;min-width:0;display:flex}.ai-demo__copy h2{letter-spacing:-.015em;font-size:clamp(28px,3.2vw,40px);line-height:1.08}.ai-demo__copy p:last-child{color:var(--ink-2);max-width:30em}.ai-demo__example{flex:420px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0;display:grid}.ai-demo__in,.ai-demo__out{border-radius:14px;flex-direction:column;gap:10px;padding:18px;font-size:14.5px;display:flex}.ai-demo__in{background:var(--bg);color:var(--ink-2)}.ai-demo__out{background:var(--navy);color:var(--on-navy)}.ai-demo__label{font-family:var(--font-mono);color:var(--muted);font-size:12px}.ai-demo__out .ai-demo__label{color:var(--on-navy-muted)}.ai-demo__out ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none;display:grid}.steps li{border-top:3px solid var(--ink);flex-direction:column;gap:10px;padding-top:18px;display:flex}.steps__n{font-family:var(--font-mono);color:var(--muted);font-size:14px}.steps h3{font-size:23px}.steps p{color:var(--ink-2)}.oss{border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px 40px;padding:32px 0;display:flex}.oss>div{flex-direction:column;flex:420px;gap:6px;min-width:0;display:flex}.oss h3{font-size:26px}.oss p{color:var(--ink-2)}.cta{background:var(--accent);color:#fff;border-radius:24px;flex-direction:column;align-items:flex-start;gap:24px;padding:clamp(32px,5vw,64px);display:flex}.cta h2{letter-spacing:-.02em;max-width:14em;font-size:clamp(32px,4.2vw,52px);line-height:1.04}.cta__actions{flex-wrap:wrap;gap:12px;display:flex}.cta__primary{color:var(--ink);background:#fff}.cta__secondary{background:var(--navy);color:#fff}.landing-footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:10px 24px;padding-bottom:40px;font-size:15px;display:flex}.landing-footer__links{gap:22px;display:flex}.landing-footer a{color:var(--muted)}@media (min-width:1500px){.landing__inner{gap:112px;max-width:1240px}}@media (max-width:1000px){.hero{gap:36px}.features{grid-template-columns:repeat(2,minmax(0,1fr))}.features .feature:last-child{grid-column:1/-1}}@media (max-width:860px){.landing__inner{gap:64px}.steps{grid-template-columns:minmax(0,1fr)}}@media (max-width:640px){.landing{font-size:16px}.landing__inner{gap:56px;padding:0 16px}.landing-nav{flex-wrap:nowrap;padding:12px 0}.landing-brand{min-width:0;font-size:19px}.landing-nav__links{flex-wrap:nowrap;gap:14px;font-size:15px}.landing-nav__links a[href^=\#],.landing-nav__links a[target=_blank]{display:none}.landing-nav__links .btn{padding:0 14px}.hero__lead{font-size:18px}.hero__actions .btn,.cta__actions .btn{width:100%}.cta__actions{align-self:stretch}.features{grid-template-columns:minmax(0,1fr)}.feature{padding:22px}.preview{border-radius:16px;padding:14px}.preview__cols,.ai-demo__example{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-demo__example{grid-template-columns:minmax(0,1fr)}.oss .btn{width:100%}.landing-footer{flex-direction:column}}@media (max-width:380px){.landing-brand{gap:0;font-size:0}}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field__label,.field>label{color:var(--ink);font-size:14px;font-weight:600}.field__input,.field>input,.field>textarea{border:1px solid var(--line-strong);background:var(--surface);width:100%;min-height:44px;color:var(--ink);border-radius:10px;padding:10px 12px;font-size:15px}.field>textarea{resize:vertical;line-height:1.45}.field__input::placeholder,.field>input::placeholder,.field>textarea::placeholder{color:#7a8296}.field__input:focus,.field>input:focus,.field>textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}.field__input--error{border-color:var(--danger)}.field__error,.field-error{color:var(--danger);font-size:13px}.field__helper,.field-hint{color:var(--muted);margin:0;font-size:13px}.passwordField{position:relative}.passwordField .field__input{padding-right:48px}.passwordField__toggle{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;display:flex;position:absolute;top:27px;right:2px}.passwordField__toggle:hover{color:var(--ink)}.auth{background:var(--bg);flex-direction:column;justify-content:center;align-items:center;gap:28px;min-height:100vh;padding:32px 16px;display:flex}.auth-brand{color:var(--ink);font-family:var(--font-display);align-items:center;gap:10px;font-size:22px;font-weight:700;display:inline-flex}.auth-brand:hover{text-decoration:none}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:24px;width:100%;max-width:460px;padding:32px;display:flex}.auth-head{flex-direction:column;gap:6px;display:flex}.auth-title{font-family:var(--font-display);letter-spacing:-.01em;margin:0;font-size:30px;font-weight:700;line-height:1.1}.auth-subtitle{color:var(--muted);margin:0}.form{flex-direction:column;gap:16px;display:flex}.form-actions{flex-direction:column;gap:10px;margin-top:4px;display:flex}.form-actions .btn{width:100%}.form-footer{text-align:center;color:var(--muted);margin:4px 0 0}.form-error,.form-success{border-radius:10px;margin:0;padding:10px 12px;font-size:14px}.form-error{background:var(--danger-soft);color:#8e1b22;border:1px solid var(--danger)}.form-success{background:var(--ok-soft);color:#075c44;border:1px solid var(--ok)}@media (max-width:480px){.auth-card{padding:24px 20px}.auth{justify-content:flex-start;gap:20px;padding:24px 16px}.auth-title{font-size:26px}}.guest-demo-btn{border-style:dashed}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.checkbox{color:var(--ink-2);align-items:flex-start;gap:10px;font-size:14px;display:flex}.checkbox input{width:18px;height:18px;accent-color:var(--accent);margin:2px 0 0}.error{color:var(--danger);margin:0;font-size:13px}@media (max-width:480px){.form-row{grid-template-columns:minmax(0,1fr)}}.dash{background:var(--bg);grid-template-columns:232px minmax(0,1fr);height:100vh;display:grid}.dash__sidebar{background:var(--navy);height:100vh;overflow:auto}.dash__right{grid-template-rows:auto minmax(0,1fr);min-width:0;height:100vh;display:grid}.dash__topbar{z-index:20;border-bottom:1px solid var(--line);position:relative}.dash__kanban{padding:24px clamp(16px,2.4vw,32px) 32px;overflow:auto}@media (max-width:1100px){.dash{grid-template-columns:72px minmax(0,1fr)}}@media (max-width:860px){.dash{height:auto;min-height:100vh;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:100dvh}.dash__sidebar,.dash__right{height:auto;overflow:visible}.dash__sidebar{z-index:30;position:sticky;top:0}.dash__topbar{background:var(--bg)}.dash__kanban{scroll-snap-type:x proximity;padding:20px 16px 32px;scroll-padding-left:16px}}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:14px clamp(16px,2.4vw,32px);display:flex}.toolbar-search{background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;flex:260px;align-items:center;gap:8px;max-width:460px;min-height:44px;padding:0 12px;display:flex;position:relative}.toolbar-search:focus-within{border-color:var(--accent);outline:2px solid var(--accent)}.search-icon{color:var(--muted);flex:none}.toolbar-search input{width:0;min-width:0;height:42px;color:var(--ink);background:0 0;border:0;outline:0;flex:auto;font-size:15px}.toolbar-search input::placeholder{color:#7a8296}.search-dropdown{z-index:50;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;max-height:60vh;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 18px 40px #12172b2e}.search-item{min-height:44px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-direction:column;gap:2px;padding:8px 10px;font-size:14px;display:flex}.search-item:hover,.search-item:focus-visible{background:var(--bg)}.search-item-top{justify-content:space-between;align-items:center;gap:10px;display:flex}.search-item-stage{font-family:var(--font-mono);color:var(--muted);background:var(--column);border-radius:6px;padding:1px 7px;font-size:11.5px}.search-item-sub{color:var(--muted);font-size:13px}.toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.profile-oss{width:44px;height:44px;color:var(--ink-2);border-radius:10px;justify-content:center;align-items:center;display:flex}.profile-oss:hover{background:var(--surface);color:var(--ink)}@media (max-width:720px){.topbar{flex-wrap:nowrap;gap:8px;padding:10px 16px}.toolbar-search{flex:1 1 0;min-width:0;max-width:none}.toolbar-actions{flex-wrap:nowrap;gap:6px}.toolbar-btn{width:44px;padding:0}.toolbar-btn span{display:none}}@media (max-width:380px){.profile-oss{display:none}}.sidebar{height:100%;color:var(--on-navy);flex-direction:column;gap:26px;padding:22px 16px;display:flex}.sidebar-brand{color:var(--on-navy);font-family:var(--font-display);align-items:center;gap:10px;padding:4px 8px;font-size:19px;font-weight:700;display:flex}.sidebar-brand:hover{text-decoration:none}.sidebar-main{flex-direction:column;gap:4px;display:flex}.sidebar-item{color:#dde1ec;border-radius:10px;align-items:center;gap:12px;min-height:44px;padding:0 12px;display:flex}a.sidebar-item:hover{background:var(--navy-line);text-decoration:none}.sidebar-item.active,a.sidebar-item.active:hover{background:var(--surface);color:var(--ink);font-weight:600}.sidebar-item--soon{color:#a9b1c6}.sidebar-soon{font-family:var(--font-mono);border:1px solid #56607a;border-radius:6px;padding:1px 6px;font-size:11px}.sidebar-user{border-top:1px solid var(--navy-line);flex-direction:column;gap:12px;margin-top:auto;padding-top:16px;display:flex}.sidebar-user__row{align-items:center;gap:10px;min-width:0;padding:0 8px;display:flex}.sidebar-avatar{width:36px;height:36px;color:var(--ink);background:#8c97ff;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:600;display:flex}.sidebar-user__text{flex-direction:column;min-width:0;line-height:1.3;display:flex}.sidebar-user__text strong{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.sidebar-user__text small{color:var(--on-navy-muted);font-size:13px}.sidebar-logout{min-height:44px;color:var(--on-navy);cursor:pointer;background:0 0;border:1px solid #56607a;border-radius:10px;justify-content:center;align-items:center;gap:8px;font-size:15px;display:flex}.sidebar-logout:hover{background:var(--navy-line)}@media (min-width:861px) and (max-width:1100px){.sidebar{align-items:stretch;padding:22px 12px}.sidebar-label,.sidebar-soon,.sidebar-user__text,.sidebar-item span{display:none}.sidebar-brand,.sidebar-item,.sidebar-user__row{justify-content:center;padding:0}.sidebar-brand{min-height:44px}}@media (max-width:860px){.sidebar{flex-direction:row;align-items:center;gap:8px;height:auto;padding:10px 16px}.sidebar-brand{margin-right:4px;padding:0;font-size:17px}.sidebar-main{flex-direction:row;flex:auto;gap:4px;min-width:0}.sidebar-item{gap:8px;min-height:44px;padding:0 12px}.sidebar-item--soon,.sidebar-user__row{display:none}.sidebar-user{border:0;margin:0;padding:0}.sidebar-logout{padding:0 12px}}@media (max-width:520px){.sidebar-brand .sidebar-label,.sidebar-logout .sidebar-label{display:none}.sidebar-logout{width:44px;padding:0}}.modal-backdrop{z-index:5000;background:#12172b8c;justify-content:center;align-items:center;padding:24px 16px;display:flex;position:fixed;inset:0}.modal-card{background:var(--surface);width:100%;max-width:640px;max-height:calc(100vh - 48px);box-shadow:var(--shadow);border-radius:18px;flex-direction:column;gap:20px;padding:24px;display:flex;overflow-y:auto}.modal-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.modal-title h2{font-family:var(--font-display);color:var(--ink);margin:0;font-size:24px;font-weight:700;line-height:1.15}.modal-title p{color:var(--muted);margin:6px 0 0}.modal-close{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;font-size:16px}.modal-close:hover:not(:disabled){background:var(--bg);color:var(--ink)}.modal-form{flex-direction:column;gap:20px;display:flex}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field-full{grid-column:1/-1}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.modal-actions .btn{min-height:44px;padding:0 18px;font-size:15px}.modal-actions .btn-ghost{border-color:var(--line-strong);color:var(--ink);background:0 0}.modal-actions .btn-ghost:hover:not(:disabled){border-color:var(--ink)}.modal-actions .btn-primary{background:var(--accent);color:#fff}.modal-actions .btn-primary:hover:not(:disabled){background:var(--accent-hover)}.modal-actions .btn-primary.btn-danger{background:var(--danger)}.modal-actions .btn-primary.btn-danger:hover:not(:disabled){background:#8e1b22}@media (max-width:560px){.form-grid{grid-template-columns:minmax(0,1fr)}.modal-backdrop{align-items:flex-end;padding:0}.modal-card{width:100%;max-width:none;max-height:92vh;max-height:92dvh;padding:20px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%}}.board-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 24px;margin-bottom:20px;display:flex;position:sticky;left:0}.board-header h1{font-family:var(--font-display);letter-spacing:-.01em;margin:0;font-size:30px;font-weight:700;line-height:1.1}.board-header p{color:var(--muted);margin:4px 0 0}.kanban-board{grid-template-columns:repeat(6,minmax(176px,1fr));align-items:stretch;gap:12px;min-width:min-content;min-height:min(60vh,520px);padding-bottom:24px;display:grid}@media (max-width:860px){.board-header h1{font-size:26px}.kanban-board{grid-template-columns:repeat(6,264px);padding-bottom:80px}.kanban-board:after{content:"";width:4px}}.stage-jump{display:none}@media (max-width:560px){.kanban-board{grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;min-height:0;padding-bottom:24px}.stage-jump{scrollbar-width:none;gap:6px;margin:0 -16px 14px;padding:0 16px 4px;display:flex;overflow-x:auto}.stage-jump a{border:1px solid var(--line-strong);background:var(--surface);min-height:40px;color:var(--ink);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:14px;display:inline-flex}.stage-jump a:hover{border-color:var(--ink);text-decoration:none}.stage-jump b{font-family:var(--font-mono);color:var(--muted);font-size:12.5px;font-weight:500}.stage-jump__dot{border-radius:50%;width:8px;height:8px}}@media (max-width:480px){.board-header{align-items:stretch}.board-header .btn{width:100%}}.kanban-board.is-dragging{cursor:grabbing}.board-header .board-header__steps{color:var(--ink-2);flex-wrap:wrap;gap:6px 14px;margin-top:6px;font-size:14px;display:flex}.board-header__overdue{color:#7a4a00;background:#fdf0d5;border-radius:6px;padding:1px 8px;font-weight:600}.stage_column{background:var(--column);border-radius:14px;flex-direction:column;gap:10px;min-width:0;padding:8px;display:flex}.stage_column_header{align-items:center;gap:8px;padding:4px 4px 0;display:flex}.stage_column_dot{border-radius:50%;flex:none;width:10px;height:10px}.stage_column_header h3{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;margin:0;font-size:14.5px;font-weight:600;overflow:hidden}.jobs_column_count{font-family:var(--font-mono);color:var(--ink-2);background:var(--surface);border-radius:8px;padding:1px 8px;font-size:12.5px}.stage_column_body{flex-direction:column;gap:10px;display:flex}.stage_column_empty{text-align:center;color:var(--muted);border:1.5px dashed #aeb5c4;border-radius:12px;margin:0;padding:22px 12px;font-size:13.5px}.stage_column_add{min-height:44px;color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;gap:6px;font-size:15px;display:flex}.stage_column_add:hover:not(:disabled){background:var(--surface);color:var(--ink)}@media (max-width:860px){.stage_column{scroll-snap-align:start;padding:10px;scroll-margin-top:76px}}@media (max-width:560px){.stage_column_empty{padding:12px}}.stage_column.is-drop-target{background:var(--accent-soft);outline:2px solid var(--accent);outline-offset:-2px}@media (min-width:861px){.stage_column_body{max-height:calc(100vh - 340px);scrollbar-width:thin;scrollbar-color:var(--line-strong)transparent;max-height:calc(100dvh - 340px);margin:-2px -6px -2px -2px;padding:2px 6px 2px 2px;overflow-y:auto}}.company_card{background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:8px;min-width:0;padding:10px;transition:border-color .12s,box-shadow .12s;display:flex;position:relative}.company_card:hover{border-color:var(--line-strong);box-shadow:0 4px 14px #12172b14}.company_card--rejected{background:#fbfbfc}.company_card--rejected .company_card_avatar{filter:grayscale()}.company_card.is-busy{opacity:.6;pointer-events:none}.company_card.is-active{border-color:var(--accent);animation:1.4s ease-out card-highlight}@keyframes card-highlight{0%{box-shadow:0 0 0 5px #3445e073}to{box-shadow:0 0 0 5px #3445e000}}.company_card_header{align-items:center;gap:10px;min-width:0;display:flex}.company_card_avatar{color:#fff;border-radius:9px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:600;display:flex}.company_card_text{min-width:0}.company_card_text h4{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:15px;font-weight:600;line-height:1.2;overflow:hidden}.company_card_text p{color:var(--ink-2);margin:0;font-size:13.5px;line-height:1.3}.company_card_meta{color:var(--muted);align-items:center;gap:4px;margin:0;font-size:13px;display:flex}.company_card_meta svg{flex:none}.company_card_tags{flex-wrap:wrap;gap:5px;display:flex}.company_card_tag{font-family:var(--font-mono);color:var(--ink-2);background:#eef0f5;border-radius:6px;padding:2px 7px;font-size:11.5px}.company_card_status{color:#075c44;background:var(--ok-soft);border-radius:6px;align-self:flex-start;padding:2px 8px;font-size:12.5px;font-weight:600}.company_card_rejected{background:var(--danger-soft);color:#8e1b22;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:4px 4px 4px 10px;font-size:12.5px;display:flex}.company_card_rejected button{background:var(--surface);color:#8e1b22;cursor:pointer;border:1px solid #8e1b22;border-radius:7px;min-height:34px;padding:0 10px;font-size:13px;font-weight:600}.company_card_rejected button:hover{color:#fff;background:#8e1b22}.company_card_busy{color:var(--accent);font-size:12.5px;font-weight:600}.company_card_footer{border-top:1px solid #e6e9ef;justify-content:space-between;align-items:center;gap:6px;margin:0 -6px -8px 0;padding-top:2px;display:flex}.company_card_date{font-family:var(--font-mono);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11.5px;overflow:hidden}.company_card_actions{flex:none;align-items:center;display:flex}.card_icon_btn{width:30px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;display:flex}.card_icon_btn:hover:not(:disabled){background:var(--bg);color:var(--ink)}.card_icon_btn.has-content{color:var(--accent)}.company_card_menu{position:relative}.card_menu{z-index:40;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;max-height:calc(100vh - 16px);padding:6px;display:flex;position:fixed;overflow-y:auto;box-shadow:0 18px 40px #12172b2e}.card_menu_item{min-height:40px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:0 10px;font-size:14px;display:flex}.card_menu_item:hover{background:var(--bg)}.card_menu_item--danger{color:var(--danger)}.card_menu_item--danger:hover{background:var(--danger-soft)}.submenu_arrow{color:var(--muted)}.card_submenu{border-left:2px solid var(--line);flex-direction:column;margin:2px 0 4px 10px;padding-left:6px;display:flex}@media (max-width:860px),(pointer:coarse){.company_card{padding:12px}.card_icon_btn{width:40px;height:40px}.card_menu_item{min-height:44px}.company_card_rejected button{min-height:40px}}.company_card{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.company_card.is-dragging{opacity:.35}.company_card--overlay{cursor:grabbing;border-color:var(--accent);gap:2px;width:220px;transform:rotate(2deg);box-shadow:0 18px 40px #12172b47}.company_card--overlay strong{font-size:15px;font-weight:600;line-height:1.2}.company_card--overlay span{color:var(--ink-2);font-size:13.5px}.company_card_step{background:var(--accent-soft);color:#23309c;border-radius:8px;align-items:center;gap:8px;padding:4px 4px 4px 8px;display:flex}.company_card_step>svg{flex:none}.company_card_step_text{flex-direction:column;flex:auto;min-width:0;line-height:1.25;display:flex}.company_card_step_text strong{overflow-wrap:anywhere;font-size:13px;font-weight:600}.company_card_step_text small{font-size:12px}.company_card_step--today{box-shadow:inset 0 0 0 1.5px var(--accent)}.company_card_step--overdue{color:#7a4a00;background:#fdf0d5}.company_card:has(.company_card_step--overdue){border-color:#c98a1b}.company_card_step_done{width:30px;height:30px;color:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:7px;flex:none;justify-content:center;align-items:center;display:flex}.company_card_step_done:hover:not(:disabled){background:var(--surface)}a.card_icon_btn:hover{background:var(--bg);text-decoration:none}@media (max-width:860px),(pointer:coarse){.company_card_step_done{width:40px;height:40px}}.company_card_age{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;align-self:flex-start;align-items:center;gap:5px;margin:-2px 0 -2px -4px;padding:2px 4px;font-size:12.5px;display:inline-flex}.company_card_age:hover:not(:disabled){background:var(--bg);color:var(--ink);text-decoration:underline}.company_card_age.is-long{color:var(--ink);font-weight:600}@media (max-width:860px),(pointer:coarse){.company_card_age{min-height:32px}}.company_card_link{flex:none;align-self:flex-start;margin:-4px -6px 0 auto}.notes-popover{background:var(--surface);border:1px solid var(--line);width:min(320px,100vw - 32px);max-height:60vh;color:var(--ink);border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex;overflow-y:auto;box-shadow:0 18px 40px #12172b38}.notes-popover-header{justify-content:space-between;align-items:center;gap:10px;font-size:14px;display:flex}.notes-close-btn{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;font-size:20px;line-height:1}.notes-close-btn:hover{background:var(--bg);color:var(--ink)}.notes-popover-content{color:var(--ink-2);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.ai-modal-backdrop{z-index:5000;background:#12172b8c;justify-content:center;align-items:center;padding:24px 16px;display:flex;position:fixed;inset:0}.ai-modal-card{background:var(--surface);width:min(760px,100%);max-height:calc(100vh - 48px);box-shadow:var(--shadow);border-radius:18px;flex-direction:column;gap:20px;padding:24px;display:flex;overflow-y:auto}.ai-modal-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.ai-modal-header h2{font-family:var(--font-display);color:var(--ink);margin:0;font-size:26px;font-weight:700;line-height:1.1}.ai-modal-subtitle{color:var(--muted);margin:6px 0 0}.ai-modal-close{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;font-size:16px}.ai-modal-close:hover:not(:disabled){background:var(--bg);color:var(--ink)}.ai-modal-form{flex-direction:column;gap:10px;display:flex}.ai-modal-label{font-size:14px;font-weight:600}.ai-modal-textarea{border:1px solid var(--line-strong);background:var(--surface);width:100%;min-height:180px;color:var(--ink);resize:vertical;border-radius:10px;padding:12px;font-size:15px;line-height:1.5}.ai-modal-textarea:focus{outline:2px solid var(--accent);border-color:var(--accent)}.ai-modal-hint{color:var(--muted);margin:0;font-size:13px}.ai-modal-error,.ai-modal-success{border-radius:10px;padding:10px 12px;font-size:14px}.ai-modal-error{background:var(--danger-soft);border:1px solid var(--danger);color:#8e1b22}.ai-modal-success{background:var(--ok-soft);border:1px solid var(--ok);color:#075c44}.ai-modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:6px;display:flex}.ai-btn{cursor:pointer;border:1.5px solid #0000;border-radius:10px;min-height:44px;padding:0 18px;font-size:15px;font-weight:600}.ai-btn:disabled{opacity:.55;cursor:not-allowed}.ai-btn-primary{background:var(--accent);color:#fff}.ai-btn-primary:hover:not(:disabled){background:var(--accent-hover)}.ai-btn-secondary{border-color:var(--line-strong);color:var(--ink);background:0 0}.ai-btn-secondary:hover:not(:disabled){border-color:var(--ink)}.ai-result{background:var(--navy);color:var(--on-navy);border-radius:14px;flex-direction:column;gap:18px;padding:20px;display:flex}.ai-result-section h3{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--on-navy-muted);margin:0 0 8px;font-size:12.5px;font-weight:500}.ai-result-section ul{flex-direction:column;gap:6px;margin:0;padding-left:18px;display:flex}.ai-tag-list{flex-wrap:wrap;gap:6px;display:flex}.ai-tag{border-radius:7px;padding:3px 9px;font-size:13px}.ai-tag-primary{color:var(--ink);background:#fff;font-weight:600}.ai-tag-secondary{color:var(--on-navy);border:1px solid #56607a}.ai-result .ai-btn-secondary{color:#fff;border-color:#fff}.ai-result .ai-btn-secondary:hover:not(:disabled){color:var(--ink);background:#fff}@media (max-width:560px){.ai-modal-backdrop{align-items:flex-end;padding:0}.ai-modal-card{width:100%;max-width:none;max-height:92vh;max-height:92dvh;padding:20px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0}.ai-modal-actions{flex-direction:column-reverse}.ai-btn{width:100%}.ai-modal-header h2{font-size:22px}.ai-modal-textarea{min-height:140px}.ai-result{padding:16px}}.history-card{max-width:520px}.history-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.history-item{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding-bottom:18px;display:grid;position:relative}.history-item:not(:last-child):before{content:"";background:var(--line);width:2px;position:absolute;top:28px;bottom:0;left:13px}.history-item:last-child{padding-bottom:0}.history-item__icon{background:var(--navy);width:28px;height:28px;color:var(--on-navy);border-radius:50%;justify-content:center;align-items:center;display:flex}.history-item--step .history-item__icon{background:var(--surface);color:var(--ink-2);box-shadow:inset 0 0 0 1.5px var(--line-strong)}.history-item__body{flex-direction:column;gap:1px;min-width:0;padding-top:3px;display:flex}.history-item__body strong{overflow-wrap:anywhere;font-size:15px;font-weight:600;line-height:1.3}.history-item--step .history-item__body strong{font-weight:500}.history-item__body span{color:var(--muted);font-size:13.5px}.history-item__date{font-family:var(--font-mono);color:var(--muted);white-space:nowrap;padding-top:5px;font-size:12px}.history-note{color:var(--muted);margin:0;font-size:14px}@media (max-width:420px){.history-item{grid-template-columns:28px minmax(0,1fr)}.history-item__date{grid-column:2;padding-top:0}}.error-banner{border:1px solid var(--danger);background:var(--danger-soft);color:#8e1b22;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 12px 10px 14px;font-size:14px;display:flex}.error-banner__close{width:36px;height:36px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none}.error-banner__close:hover{background:#8e1b221a}.statistics-page{max-width:980px;color:var(--ink);flex-direction:column;gap:28px;display:flex}.stats-back{color:var(--accent);cursor:pointer;align-self:flex-start;font-size:14px}.stats-back:hover{text-decoration:underline}.statistics-header h1{font-family:var(--font-display);letter-spacing:-.01em;margin:0;font-size:30px;font-weight:700;line-height:1.1}.statistics-header p{color:var(--muted);margin:4px 0 0}.statistics-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:4px;padding:18px;display:flex}.stat-card h3{color:var(--muted);margin:0;font-size:14px;font-weight:500}.stat-card p{font-family:var(--font-display);font-variant-numeric:tabular-nums;margin:0;font-size:36px;font-weight:700;line-height:1.1}.stat-card small{color:var(--muted);font-size:13px}.statistics-section{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:12px;padding:22px;display:flex}.statistics-section h2{font-family:var(--font-display);margin:0;font-size:22px;font-weight:700}.section-subtitle{color:var(--muted);margin:-6px 0 0;font-size:14px}.insight-item{border-top:1px solid var(--line);color:var(--ink-2);padding:10px 0}.insight-item strong{color:var(--ink);font-weight:600}.stage-breakdown-list{flex-direction:column;gap:10px;display:flex}.stage-breakdown-item{grid-template-columns:110px minmax(0,1fr) 36px;align-items:center;gap:12px;font-size:14.5px;display:grid}.stage-breakdown-item strong{text-align:right;font-variant-numeric:tabular-nums}.stage-breakdown-bar{background:var(--column);border-radius:7px;height:14px;overflow:hidden}.stage-breakdown-bar i{background:var(--accent);border-radius:7px;height:100%;display:block}@media (max-width:860px){.stats-back{display:none}}@media (max-width:560px){.statistics-page{gap:20px}.statistics-header h1{font-size:26px}.statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px}.stat-card:first-child{grid-column:1/-1}.stat-card p{font-size:28px}.statistics-section{padding:16px}.stage-breakdown-item{grid-template-columns:88px minmax(0,1fr) 28px;gap:8px;font-size:13.5px}}.timing-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.timing-item{background:var(--bg);border-radius:12px;flex-direction:column;gap:2px;padding:14px 16px;display:flex}.timing-item__label{color:var(--muted);font-size:14px}.timing-item strong{font-family:var(--font-display);font-variant-numeric:tabular-nums;font-size:28px;font-weight:700;line-height:1.15}.timing-item strong.is-empty{font-family:var(--font-body);font-size:16px;font-weight:600;line-height:1.6}.timing-item small{color:var(--muted);font-size:13px}.waiting-list{margin:0;padding:0;list-style:none}.waiting-list li{border-top:1px solid var(--line);color:var(--ink-2);justify-content:space-between;gap:12px;padding:9px 0;font-size:14.5px;display:flex}.waiting-list strong{color:var(--ink);font-weight:600}.waiting-list__days{font-family:var(--font-mono);font-variant-numeric:tabular-nums;flex:none;font-size:13px}.stats-empty{color:var(--muted);margin:0}.stats-table{border-collapse:collapse;width:100%;font-size:14.5px}.stats-table th,.stats-table td{border-top:1px solid var(--line);text-align:left;padding:8px 0;font-weight:400}.stats-table thead th{color:var(--muted);border-top:0;padding-top:0;font-size:13px}.stats-table tbody th{font-weight:600}.stats-table .num{text-align:right;font-variant-numeric:tabular-nums}.stats-table .muted{color:var(--muted)}
