:root{--red:#ed111b;--yellow:#ffd600;--ink:#111111;--muted:#70716e;--line:#e5e5df;--bg:#f8f8f5;--white:#fff;--green:#247557;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.board:focus-visible{outline:3px solid #be9200;outline-offset:3px}button{color:inherit}a{color:inherit}.hidden{display:none!important}.loading{display:grid;place-items:center;min-height:100dvh;color:var(--muted)}.brand-logo{display:block;width:224px;height:auto;flex-shrink:0;object-fit:contain}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--muted);margin:0 0 13px}.app-header{height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 40px;border-bottom:1px solid var(--line);background:white}.brand,.account{display:flex;align-items:center;gap:23px}.brand-divider{height:23px;width:1px;background:var(--line)}.workspace-label,.account{font-size:12px;color:var(--muted)}.account{gap:18px}.text-button{border:0;background:none;font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:12px 0}.main{padding:35px 40px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}h1{font-size:36px;letter-spacing:-1.3px;font-weight:750;margin:0 0 10px;line-height:1.13}.title-dot{color:var(--red)}.subtitle{font-size:13px;color:var(--muted);margin:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:8px;padding:12px 17px;min-height:44px;font-size:12px;font-weight:650;white-space:nowrap;transition:background .15s,box-shadow .15s}.button svg,.icon-button svg,.search svg,.move-card svg,.column-drag svg{width:17px;height:17px;flex-shrink:0}.primary{background:var(--red);color:white;box-shadow:0 3px 6px #ed111b14}.primary:hover{background:#d70e17}.secondary{background:white;border-color:var(--line)}.secondary:hover,.quiet:hover{background:#eee}.quiet{background:transparent}.danger{background:#fff1f1;color:#b80b15;border-color:#ffd9d9}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 13px;min-width:280px;width:390px;max-width:100%;height:44px}.search span{display:flex;color:#858580}.search input{min-width:0;flex:1;border:0;outline:0;font-size:12px;background:transparent;height:100%}.search:focus-within{box-shadow:0 0 0 2px #ffd600}.search input:focus-visible{outline:none}.search kbd{border:1px solid var(--line);padding:1px 5px;border-radius:3px;font-size:11px;color:#92928d}.toolbar-actions{display:flex;align-items:center;gap:14px}.count-label{font-size:12px;color:var(--muted);white-space:nowrap}.board-info{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:22px 0 15px}.sync{display:flex;align-items:center;gap:7px}.sync:before{content:"";width:6px;height:6px;background:var(--green);border-radius:50%}.sync.offline:before{background:#b86e16}.board{display:flex;gap:16px;overflow-x:auto;align-items:stretch;min-height:430px;padding:2px 2px 20px;scrollbar-width:thin;scrollbar-color:#c6c6be transparent}.column{width:300px;min-width:300px;background:#eeefea;border:1px solid #e4e5dd;border-radius:var(--radius);padding:13px;display:flex;flex-direction:column;transition:background .15s;max-height:calc(100dvh - 340px);min-height:405px}.column.drag-over{background:#fff6be;box-shadow:inset 0 0 0 2px #e1bf00}.column-head{display:flex;align-items:center;gap:7px;margin:0 0 15px;min-height:32px}.column-stripe{height:6px;width:6px;border-radius:2px;background:var(--red);flex-shrink:0}.column:nth-child(3n+2) .column-stripe{background:#d2ab00}.column:nth-child(3n) .column-stripe{background:#454742}.column h2{font-size:13px;line-height:1.3;flex:1;min-width:0;overflow-wrap:anywhere;margin:0;font-weight:700}.column-count{font-size:10px;color:#6b6c65;border:1px solid #d8dad1;border-radius:5px;min-width:22px;text-align:center;padding:3px}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;border-radius:6px}.icon-button:hover{background:#dadcd2}.column-drag{border:0;background:transparent;cursor:grab;color:#8e9086;display:flex;padding:3px;min-height:30px;align-items:center}.card-list{display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:75px;flex:1;padding:1px}.customer-card{background:white;border:1px solid #e2e3dc;border-radius:10px;box-shadow:0 2px 3px #11111103;position:relative}.customer-card:hover{border-color:#b7b9ae;box-shadow:0 4px 10px #11111106}.customer-card.dragging{opacity:.4}.card-main{display:flex;text-align:left;gap:11px;width:100%;background:none;border:0;padding:17px 14px 12px;border-radius:10px}.avatar{width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f3f2eb;font-size:11px;color:#6b6b60;font-weight:650;flex-shrink:0}.card-copy{min-width:0}.card-name{font-size:13px;font-weight:650;margin:1px 0 6px;overflow-wrap:anywhere;display:block}.card-phone{font-size:11px;color:var(--muted);display:block}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 10px 60px;min-height:30px}.service-tag{font-size:9px;color:#73746a;line-height:1.4;overflow-wrap:anywhere}.move-card{border:0;background:transparent;color:#8a8b80;padding:4px;display:flex;align-items:center;gap:3px;font-size:10px;border-radius:4px;margin-left:auto}.move-card:hover{color:var(--ink);background:#f1f2ec}.column-add{font-size:11px;color:#74776b;width:100%;border:1px dashed #cfd1c4;border-radius:7px;background:transparent;padding:11px;margin-top:13px;display:flex;align-items:center;justify-content:center;gap:6px}.column-add:hover{background:#fff9d1;border-color:#c0aa45}.column-add svg{width:14px;height:14px}.column-empty{color:#93968a;font-size:11px;line-height:1.7;text-align:center;margin:auto;padding:26px 10px}.new-column-tile{width:170px;min-width:170px;align-self:flex-start;border:1px dashed #d0d2c7;background:none;color:#888b7e;border-radius:var(--radius);padding:22px 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}.new-column-tile svg{width:15px}.board-tip{font-size:10px;color:#92948a;margin:13px 0}.empty-board{padding:55px 20px 65px;text-align:center;background:white;border:1px dashed #d7d8cf;border-radius:16px;margin-top:2px}.empty-icon{margin:0 auto 22px;width:62px;height:62px;border-radius:17px;background:#fff9d5;color:#b29718;display:grid;place-items:center}.empty-icon svg{width:29px;height:29px}.empty-board h2{font-size:24px;letter-spacing:-.6px;margin:0 0 12px}.empty-board>p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 24px}.login{min-height:100dvh;display:flex;flex-direction:column}.login-top{display:flex;justify-content:space-between;align-items:center;padding:35px 45px}.login-top .eyebrow{margin:0}.login-card{width:540px;max-width:calc(100% - 36px);margin:auto;background:white;border:1px solid var(--line);border-radius:20px;padding:48px;box-shadow:0 16px 50px #11111105}.brand-rule{width:40px;height:5px;background:var(--yellow);margin-bottom:28px}.login-card h1{font-size:34px;line-height:1.2}.login-copy{font-size:14px;color:var(--muted);line-height:1.8;margin:22px 0 30px}.google-button{display:flex;gap:12px;align-items:center;justify-content:center;border:1px solid #c5c7c5;border-radius:6px;padding:13px;text-decoration:none;font-size:14px;font-weight:550;background:white}.google-button:hover{background:#fafafa}.google-button svg{width:20px;height:20px}.small{font-size:11px;line-height:1.6}.muted{color:var(--muted)}.login-card .small{text-align:center;margin-top:17px}.login-footer{text-align:center;font-size:11px;color:var(--muted);padding:35px 16px}.login-footer span{color:var(--red);margin:0 9px}dialog{width:510px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:17px;padding:0;box-shadow:0 24px 80px #0002;color:var(--ink)}dialog::backdrop{background:#13171060;backdrop-filter:blur(3px)}.dialog-head{padding:23px 25px 17px;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:flex-start;justify-content:space-between}.dialog-head h2{font-size:21px;letter-spacing:-.5px;margin:0}.dialog-head .eyebrow{font-size:9px;margin:0 0 7px}.dialog-body{padding:22px 25px 25px}.dialog-body p{font-size:13px;line-height:1.7;margin:0 0 18px;color:var(--muted)}.field{display:block;margin-bottom:16px;font-size:12px;font-weight:600}.field>span{display:block;margin-bottom:7px}.field input,.field textarea,.field select{display:block;width:100%;padding:11px 12px;border:1px solid #d9dcd3;border-radius:7px;background:white;color:var(--ink);font-size:14px;font-weight:400;min-height:43px}.field textarea{resize:vertical;min-height:75px}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optional{font-style:normal;font-weight:400;color:#999;font-size:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px;flex-wrap:wrap}.dialog-actions .danger{margin-right:auto}.error{background:#fff0ef;border:1px solid #f0c8c4;color:#ac2920!important;font-size:12px!important;padding:12px;border-radius:8px;margin-bottom:15px!important;line-height:1.6}.inline-note{font-size:11px!important}.menu-actions{display:grid;gap:9px}.menu-actions .button{justify-content:flex-start;white-space:normal;text-align:left}.menu-actions .danger{margin-top:9px}.trash-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between}.trash-row:first-child{padding-top:0}.trash-row:last-child{border:0;padding-bottom:0}.trash-row strong{font-size:13px;overflow-wrap:anywhere}.trash-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#20241d;color:white;border-radius:9px;padding:13px 20px;font-size:12px;max-width:calc(100vw - 30px);z-index:1000;box-shadow:0 7px 20px #0002;text-align:center;line-height:1.5}.toast.failed{background:#a62824}
@media(min-width:1500px){.main{padding-left:54px;padding-right:54px}.app-header{padding-left:54px;padding-right:54px}.column{width:320px;min-width:320px}}
@media(max-width:900px){.main{padding:28px 23px}.app-header{padding:0 23px}.workspace-label,.brand-divider{display:none}.toolbar-actions{gap:5px}.count-label{display:none}.search{width:330px}.toolbar{gap:10px}.board{min-height:420px}.column{max-height:calc(100dvh - 330px)}.toolbar .button{padding:11px 12px}}
@media(max-width:600px){.app-header{height:67px;padding:0 18px}.brand-logo{width:168px}.account #user-name{display:none}.main{padding:25px 17px 15px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:24px}.page-heading h1{font-size:28px;letter-spacing:-1px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.1px;max-width:200px;line-height:1.6;margin-bottom:8px}.subtitle{font-size:11px}.page-heading>.button{margin-top:24px;font-size:11px;padding:10px;gap:5px;min-height:40px}.page-heading>.button svg{width:15px}.toolbar{flex-wrap:wrap;gap:12px;padding-bottom:16px}.search{width:100%;height:44px;min-width:0}.search input{font-size:13px}.search kbd{display:none}.toolbar-actions{width:100%;gap:8px;justify-content:flex-end}.toolbar-actions .count-label{display:block;margin-right:auto;font-size:11px}.toolbar .button{padding:8px 10px;font-size:11px;min-height:40px}.board-info{padding-top:18px;font-size:10px;gap:10px}.board{margin-right:-17px;padding-right:17px;scroll-snap-type:x proximity;min-height:420px;gap:12px}.column{width:min(310px,84vw);min-width:min(310px,84vw);scroll-snap-align:start;max-height:none;min-height:400px}.card-list{overflow-y:visible}.column-head .icon-button{min-width:38px;min-height:38px}.column-drag{display:none}.column h2{font-size:14px}.card-name{font-size:14px}.card-phone{font-size:12px}.move-card{min-height:34px;min-width:45px}.board-tip{line-height:1.6;font-size:10px}.empty-board{padding:38px 20px}.empty-board h2{font-size:22px}.empty-board>p:not(.eyebrow){font-size:12px}.empty-board br{display:none}.login-top{padding:26px 23px}.login-top>.eyebrow{font-size:8px}.login-card{padding:30px 24px}.login-card h1{font-size:29px}.login-copy{font-size:13px}.dialog-head{padding:20px}.dialog-body{padding:20px}.field input,.field textarea,.field select{font-size:16px}.fields-row{grid-template-columns:1fr;gap:0}.dialog-actions .button{flex:1}.dialog-actions .danger{flex-basis:100%;order:3}.toast{bottom:18px}.new-column-tile{min-width:145px;width:145px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:380px){.login-top>.eyebrow{display:none}}

/* Compact board: one control row, with columns filling the remaining viewport. */
#workspace{height:100dvh;min-height:360px;display:flex;flex-direction:column}
.app-header{flex-shrink:0}
.main{display:flex;flex:1;flex-direction:column;min-height:0;padding-top:12px;padding-bottom:10px;gap:10px;overflow:hidden}
.toolbar{flex-shrink:0;flex-wrap:nowrap;justify-content:space-between;gap:16px;padding-bottom:10px;overflow-x:auto;scrollbar-width:thin;align-items:center}
.search{flex:1 1 390px;min-width:220px;max-width:480px}
.toolbar-actions{flex:0 0 auto;flex-wrap:nowrap;width:auto;gap:12px}
.toolbar-actions .count-label{display:block;margin-right:0}
.toolbar .button{min-height:44px;margin:0}
.board-info{flex-shrink:0;padding:0;min-height:16px;gap:12px}
.board{flex:1;min-height:0;align-items:stretch;padding-top:2px;padding-bottom:6px}
.column{height:100%;max-height:none;min-height:0;flex-shrink:0}
.column-head,.column-add{flex-shrink:0}
.card-list{min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
.board-tip{flex-shrink:0;margin:0;line-height:1.4}
.empty-board{overflow-y:auto;min-height:0}
@media(max-width:900px){.main{padding-top:12px;padding-bottom:10px}.toolbar{gap:12px}.toolbar-actions{gap:8px}}
@media(max-width:600px){.main{padding-top:10px;padding-bottom:max(8px,env(safe-area-inset-bottom));gap:8px}.toolbar{flex-wrap:nowrap;gap:10px;padding-bottom:8px}.search{flex:0 0 210px;min-width:210px;width:210px}.search input{font-size:13px}.toolbar-actions{width:auto;flex:0 0 auto;gap:6px}.toolbar-actions .count-label{font-size:11px;margin:0 4px}.toolbar .button{padding:10px;min-height:44px}.board-info{padding:0;font-size:10px}.board{min-height:0;padding-bottom:6px}.column{height:100%;min-height:0;max-height:none}.card-list{overflow-y:auto}.board-tip{display:none}}

.customer-card.is-saving{border-color:#d2ab00}.customer-card.is-saving button:disabled{opacity:1;cursor:progress}.customer-card.is-saving:after{content:'';position:absolute;right:9px;top:9px;width:6px;height:6px;border-radius:50%;background:#d2ab00;pointer-events:none}

/* Compact customer summary, followed by a readable visit history. */
dialog.customer-detail-dialog{width:720px}
.customer-detail-dialog .dialog-head{padding:20px 24px 15px}
.customer-detail-dialog .dialog-head h2{overflow-wrap:anywhere}
.customer-detail-dialog .dialog-body{padding:0 24px 20px}
.customer-summary{padding:16px 0;border-bottom:1px solid var(--line)}
.summary-top,.history-heading,.appointment-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.summary-top .button{padding:8px 12px;min-height:40px}
.customer-stage{background:#f2f2ec;padding:6px 9px;border-radius:5px;font-size:11px;overflow-wrap:anywhere}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:14px 0 0}
.contact-grid>div{min-width:0}.contact-grid dt{font-size:10px;color:var(--muted);margin-bottom:3px}.contact-grid dd{margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.contact-address{grid-column:1/-1}.dialog-body p.summary-empty{margin:12px 0 0;font-size:12px}
.customer-note{margin-top:13px;font-size:12px}.customer-note summary{cursor:pointer;color:var(--muted);padding:5px 0}.dialog-body .customer-note p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;color:var(--ink)}
.history-heading{padding:20px 0 14px}.history-heading h3{font-size:15px;margin:0}.history-heading .button{padding:9px 12px;min-height:42px}
.appointment-entry{border:1px solid var(--line);border-radius:10px;padding:13px 16px;margin-bottom:12px;background:white}
.appointment-top time{font-size:12px;font-weight:650;color:#777047}.appointment-top .text-button{padding:8px 4px;min-height:36px}
.appointment-entry h4{font-size:14px;line-height:1.5;margin:4px 0 8px;overflow-wrap:anywhere}
.dialog-body p.appointment-note{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:4px 0 0;font-size:13px;line-height:1.65}
.dialog-body p.history-status{padding:22px 16px;border:1px dashed var(--line);border-radius:10px;text-align:center;font-size:12px;margin:0}
.detail-footer{margin-top:15px;text-align:right}.detail-footer .text-button{color:#b80b15}
@media(max-width:600px){.customer-detail-dialog .dialog-head{padding:17px}.customer-detail-dialog .dialog-body{padding:0 17px 14px}.contact-grid{gap:10px 14px}.history-heading{gap:8px}.history-heading h3{font-size:14px}.history-heading .button{font-size:11px;padding:9px}.appointment-entry{padding:10px 12px}.customer-stage{max-width:55%}}

/* Phones: swipe to browse, tap Move to choose a column. No native card dragging. */
.touch-controls .customer-card,.touch-controls .customer-card *{-webkit-user-drag:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.touch-controls .column-drag{display:none}
.touch-controls .move-card{min-height:44px;min-width:82px;padding:8px 12px;font-size:12px;color:var(--ink);border:1px solid var(--line);background:#f8f8f5;border-radius:7px;justify-content:center}
.touch-controls .card-footer{padding:0 12px 10px;gap:12px}
.touch-controls .service-tag{font-size:11px}
.move-destinations{display:grid;gap:9px}
.move-destinations .button{min-height:48px;justify-content:space-between;text-align:left;white-space:normal;font-size:14px}
.move-destinations .button span{min-width:0;overflow-wrap:anywhere}
