:root{font-family:system-ui,sans-serif;color:#24372e;background:#f3f5f0}
*{box-sizing:border-box}
body{margin:0}
main{max-width:1050px;margin:40px auto;padding:0 20px}
header,.toolbar,.row{display:flex;gap:15px;justify-content:space-between;align-items:center}
header{margin-bottom:28px}
small{color:#71816b;letter-spacing:2px;font-size:10px}
h1{font-size:30px;margin:8px 0}
h2{font-size:23px}
.panel{background:#e6eddc;border-radius:12px;padding:20px;margin-bottom:25px}
p,footer{font-size:13px;line-height:1.6;color:#6c7d64}
button,input,select,textarea{font:inherit;border:1px solid #ccd5c4;border-radius:7px;padding:11px;background:#fff;color:#24372e}
button{cursor:pointer;background:#c5dd91;font-weight:600}
button:disabled{opacity:.5;cursor:wait}
input,select,textarea{width:100%;min-width:0}
.toolbar>*{flex:1}
.car{background:white;border:1px solid #dae1d4;border-left:4px solid #9aaa8b;border-radius:10px;padding:20px;margin:12px 0}
.car.urgent,.car.overdue{background:#fff3f0;border-color:#dd8c7f}
.car.done{opacity:.8}
.car h3{margin:0 0 8px}
.car p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.car .timer{font-weight:650;color:#476039}
.urgent .timer,.overdue .timer{color:#b0493a}
.empty{text-align:center;padding:50px;border:1px dashed #b6c4aa;border-radius:12px}
footer{margin:25px 0;font-size:11px}
dialog{border:0;border-radius:14px;padding:26px;width:460px;max-width:95vw}
dialog::backdrop{background:#10261988}
label{display:block;font-size:12px;margin:14px 0}
label input,label textarea{display:block;margin-top:6px}
.row>*{flex:1}
#error,#form-error{color:#b0493a}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #73934f;outline-offset:2px}
@media(max-width:620px){
main{margin:25px auto}
header{align-items:stretch;flex-direction:column}
h1{font-size:25px}
.toolbar{flex-direction:column;align-items:stretch}
.row{flex-wrap:wrap}
.car .row{align-items:stretch;flex-direction:column}
}
/* Красно-чёрная тема */
:root{
 color:#f3f3f3;
 background:#0e0e11;
 color-scheme:dark;
}
header{
 border-bottom:2px solid #d82c3b;
 padding-bottom:24px;
}
small{color:#ff8992}
.panel{
 background:#1c171b;
 border:1px solid #52232b;
}
p,footer{color:#bdbdc6}
button,input,select,textarea{
 background:#17171d;
 color:#f3f3f3;
 border-color:#42424c;
}
input::placeholder,textarea::placeholder{color:#9898a6}
button{
 background:#c82336;
 border-color:#c82336;
}
button:hover{background:#e12b40}
.car{
 background:#19191f;
 border-color:#383840;
 border-left-color:#747480;
}
.car.urgent{
 background:#28191e;
 border-color:#db5a67;
}
.car.overdue{
 background:#37161e;
 border:2px solid #ff5367;
 border-left:6px solid #ff5367;
}
.car h3{margin:12px 0 8px}
.car .timer{
 font-size:18px;
 color:#f4f4f7;
}
.urgent .timer,.overdue .timer{color:#ff8b99}
.badge{
 display:inline-block;
 background:#303039;
 border-radius:5px;
 padding:6px 8px;
 color:#eee;
 font-weight:700;
 letter-spacing:.6px;
}
.urgent .badge,.overdue .badge{
 background:#8f2233;
 color:#fff;
}
.vin{
 font-family:Consolas,monospace;
 letter-spacing:1px;
}
.empty{border-color:#555561}
dialog{
 background:#19191f;
 color:#f3f3f3;
 border:1px solid #5a3038;
}
dialog::backdrop{background:#000b}
#error,#form-error{color:#ff9aa5}
button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
 outline:3px solid #ff91a0;
}
/* Колонки и красно-чёрная тема */
:root{color:#f3f3f3;background:#0e0e11;color-scheme:dark}
main{max-width:1500px}
header{border-bottom:2px solid #d82c3b;padding-bottom:24px}
small{color:#ff8992}
.panel{background:#1c171b;border:1px solid #52232b}
p,footer{color:#bdbdc6}
button,input,select,textarea{
 background:#17171d;color:#f3f3f3;border-color:#42424c
}
button{background:#c82336;border-color:#c82336}
button:hover{background:#e12b40}
input::placeholder{color:#9898a6}
.board{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;align-items:start
}
.column{
 background:#141418;padding:14px;
 border:1px solid #34343e;border-radius:12px;min-width:0
}
.column h2{font-size:18px;margin:5px 0 20px}
.column h2 span{color:#ff8b99;font-size:14px}
.car{
 background:#19191f;border-color:#383840;
 border-left-color:#747480;padding:16px
}
.car.urgent{background:#28191e;border-color:#db5a67}
.car.overdue{
 background:#37161e;border:2px solid #ff5367;
 border-left:6px solid #ff5367
}
.car h3{overflow-wrap:anywhere;margin:12px 0 8px}
.car .timer{font-size:14px;color:#f4f4f7}
.urgent .timer,.overdue .timer{color:#ff8b99}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.actions button{font-size:12px;flex:1}
.diagnostic{font-size:11px!important;color:#efc7cd}
.vin{font-family:Consolas,monospace;letter-spacing:1px}
.toolbar label{
 display:flex;align-items:center;gap:8px;flex:0 0 auto
}
#archive{width:auto}
.empty{padding:20px;border-color:#555561}
dialog{background:#19191f;color:#f3f3f3;border:1px solid #5a3038}
dialog::backdrop{background:#000b}
#error,#form-error{color:#ff9aa5}
.board:has(.column:nth-child(4)){
 grid-template-columns:repeat(4,minmax(0,1fr))
}
@media(max-width:1050px){
 .board,.board:has(.column:nth-child(4)){
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
}
@media(max-width:650px){
 .board,.board:has(.column:nth-child(4)){
  grid-template-columns:1fr
 }
}

/* makvin-design-v1 */
:root{
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 color:#eeeef2;background:#101014;color-scheme:dark;
 --red:#ef3d4d;--muted:#95959f;--line:#2c2c35
}
body{
 margin:0;min-height:100vh;
 background:radial-gradient(ellipse at 90% 0,#38151e55,transparent 45%),#101014
}
main{max-width:1440px;margin:0 auto;padding:28px 36px 34px}
.brand-line{
 display:flex;align-items:center;gap:12px;
 font-size:17px;letter-spacing:2px;font-weight:800;
 border-bottom:1px solid var(--line);
 padding:0 0 24px;margin-bottom:32px
}
.brand-mark{
 display:grid;place-items:center;width:42px;height:44px;
 background:#28181e;border:1px solid #61303b;border-radius:10px;
 color:#ff5c6c;font-size:27px;font-weight:850
}
.brand-line small{
 display:block;font-size:8px;letter-spacing:4px;
 color:var(--muted);margin-top:5px
}
.workspace-label{
 margin-left:auto;color:#85858f;font-size:9px;
 letter-spacing:1.7px;font-weight:500
}
header{
 display:flex;justify-content:space-between;gap:20px;
 align-items:center;padding:0;margin-bottom:26px;border:0
}
header small{color:var(--muted);font-size:9px;letter-spacing:1.8px}
h1{font-size:34px;font-weight:650;letter-spacing:-1px;margin:9px 0 0}
button,input,textarea,select{
 border:1px solid var(--line);border-radius:11px;
 padding:12px 14px;background:#19191f;color:#eeeef2;
 font-size:13px;min-height:44px
}
button{
 font-weight:600;background:#25252e;
 transition:background .15s,border-color .15s
}
button:hover{background:#30303b;border-color:#555561}
button:focus-visible,input:focus-visible,
textarea:focus-visible,summary:focus-visible{
 outline:3px solid #ff8e99;outline-offset:3px
}
input::placeholder,textarea::placeholder{color:#777783}
#add{
 background:var(--red);border-color:var(--red);
 color:#fff;padding:14px 20px
}
#add:hover{background:#ff5060}
.dashboard-stats{
 display:grid;grid-template-columns:repeat(3,1fr);
 gap:14px;margin:0 0 22px
}
.dashboard-stats button{
 text-align:left;background:linear-gradient(130deg,#202027,#18181e);
 padding:19px 21px;min-height:100px;
 border:1px solid #303039;border-radius:14px
}
.dashboard-stats button:hover{border-color:#84505b}
.dashboard-stats span{font-size:12px;color:#aaaab4;font-weight:400}
.dashboard-stats strong{
 display:block;font-size:32px;font-weight:550;
 letter-spacing:-1px;margin-top:9px
}
.dashboard-stats button:last-child strong{color:#ff6a78}
.panel{
 border:1px solid var(--line);border-radius:12px;
 background:#17171d;padding:0;margin:0 0 24px
}
.notification-settings summary{
 padding:14px 18px;cursor:pointer;
 color:#b0b0ba;font-size:12px;list-style-position:inside
}
.notification-settings p{padding:0 18px;font-size:12px;color:#9999a5}
.notification-settings #test{margin:4px 18px 16px;font-size:12px}
.toolbar{
 display:flex;justify-content:space-between;
 align-items:center;gap:16px;margin:0 0 20px
}
.toolbar>input{
 max-width:430px;background:#17171d;
 font-size:12px;padding-left:15px
}
.toolbar label{
 display:flex;align-items:center;gap:8px;
 color:#9898a4;font-size:11px;margin:0;white-space:nowrap
}
.toolbar label input{width:14px;min-height:14px;accent-color:var(--red)}
.stage-tabs{
 display:flex;gap:6px;border-bottom:1px solid var(--line);
 padding-bottom:12px;margin-bottom:17px;
 overflow:auto;scrollbar-width:none
}
.stage-tabs button{
 border-color:transparent;background:transparent;
 color:#92929e;font-size:12px;white-space:nowrap;
 min-height:38px;padding:8px 14px;border-radius:8px
}
.stage-tabs button.selected{
 background:#3b1e27;color:#ff99a3;border-color:#65313e
}
.stage-tabs button:hover{color:#fff;background:#24242c}
#summary{font-size:10px;color:#7f7f8c;margin:0 0 20px;line-height:1.6}
#error,#form-error{color:#ff97a3;font-size:12px;line-height:1.5}
#error:empty,#form-error:empty{display:none}
.board{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;align-items:start
}
.board:has(.column:nth-child(4)){
 grid-template-columns:repeat(4,minmax(0,1fr))
}
.column{background:transparent;border:0;padding:0;min-width:0}
.column h2{
 display:flex;align-items:center;gap:8px;
 font-size:12px;font-weight:550;color:#c6c6cf;
 margin:0 0 15px;padding:0 2px
}
.column h2 span{
 background:#292932;border:1px solid #35353f;
 color:#a9a9b5;font-size:10px;padding:3px 6px;border-radius:6px
}
.car{
 padding:18px;margin:0 0 12px;background:#1c1c23;
 border:1px solid #34343f;border-left:1px solid #34343f;
 border-radius:13px;box-shadow:0 4px 20px #00000012;overflow:hidden
}
.car>small{font-size:9px;color:#82828e;letter-spacing:1px}
.car h3{
 font-size:19px;line-height:1.3;font-weight:600;letter-spacing:-.4px;
 color:#f4f4f7;margin:9px 0 12px;overflow-wrap:anywhere
}
.car p{
 font-size:11px;line-height:1.6;color:#9696a4;margin:9px 0;
 white-space:pre-wrap;overflow-wrap:anywhere
}
.car .vin{
 display:inline-block;padding:5px 9px;
 background:#292932;border:1px solid #393944;border-radius:6px;
 color:#dddde5;font:600 14px Consolas,monospace;
 letter-spacing:1.5px;margin:0 0 8px
}
.diagnostic{color:#aaaab7!important;font-size:10px!important}
.car .timer{
 border-top:1px solid #34343e;padding-top:12px;margin-top:13px;
 font-size:12px;font-weight:600;color:#dedee6;line-height:1.7
}
.car.urgent{
 background:linear-gradient(145deg,#302027,#231b22);
 border:1px solid #8b414f;border-left:3px solid #f46576
}
.car.overdue{
 background:linear-gradient(145deg,#3c1d27,#271920);
 border:1px solid #b14b5c;border-left:3px solid #ff4c64
}
.urgent .timer,.overdue .timer{
 color:#ff9baa;border-top-color:#64313f
}
.actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:7px}
.actions button{
 flex:1;min-width:100px;min-height:39px;padding:10px 9px;
 font-size:10px;border-radius:8px;background:#2a2a35;
 border-color:#41414f;color:#e4e4ed
}
.actions button[data-action=work],
.actions button[data-action=diagnosed]{
 background:#41303a;border-color:#69404c;color:#ffd3da
}
.actions button[data-action=done]{
 background:#ce3447;border-color:#ce3447;color:white
}
.actions button:hover{filter:brightness(1.15)}
.empty{
 text-align:center;background:#16161c;border:1px dashed #383843;
 border-radius:12px;padding:36px 18px;font-size:11px;color:#737381
}
footer{
 border-top:1px solid var(--line);padding-top:19px;
 margin-top:24px;color:#6e6e7b;font-size:10px;line-height:1.6
}
dialog{
 border:1px solid #4d3540;border-radius:18px;
 background:#1b1b23;color:#f1f1f6;width:480px;
 max-width:calc(100vw - 24px);max-height:90dvh;padding:26px;
 box-shadow:0 24px 120px #0009
}
dialog::backdrop{background:#060609bb;backdrop-filter:blur(5px)}
dialog h2{
 font-size:24px;font-weight:600;letter-spacing:-.6px;margin:0 0 22px
}
label{font-size:11px;color:#aaaab7}
label input,label textarea{
 margin-top:7px;background:#131319;border-color:#3a3a47;padding:12px
}
dialog button[type=submit]{
 background:var(--red);border-color:var(--red);color:white
}
main:not([data-view=all]) .column{display:none}
main[data-view=queue] .column:nth-child(1),
main[data-view=diagnosis] .column:nth-child(2),
main[data-view=work] .column:nth-child(3),
main[data-view=done] .column:nth-child(4){
 display:block;grid-column:1/-1
}
main:not([data-view=all]) .column{
 max-width:800px;width:100%;margin:0 auto
}
@media(max-width:1050px){
 main{padding:24px}
 .board,.board:has(.column:nth-child(4)){
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
 .workspace-label{display:none}
}
@media(max-width:700px){
 main{
  padding:20px 16px calc(100px + env(safe-area-inset-bottom));
  margin:0
 }
 .brand-line{padding-bottom:18px;margin-bottom:23px;font-size:15px}
 .brand-mark{width:36px;height:38px;font-size:24px}
 header{margin-bottom:20px;display:block}
 header small{font-size:8px;letter-spacing:1.1px}
 h1{font-size:28px;margin-top:8px}
 #add{
  position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));
  left:16px;right:16px;width:calc(100% - 32px);
  z-index:20;min-height:51px;border-radius:13px;
  box-shadow:0 4px 26px #0009;font-size:13px
 }
 .dashboard-stats{gap:8px;margin-bottom:16px}
 .dashboard-stats button{
  min-height:86px;padding:13px 11px;border-radius:11px
 }
 .dashboard-stats span{font-size:10px}
 .dashboard-stats strong{font-size:27px;margin-top:9px}
 .panel{margin-bottom:18px}
 .notification-settings summary{padding:12px 14px;font-size:11px}
 .toolbar{
  gap:10px;flex-direction:column;align-items:stretch;margin-bottom:15px
 }
 .toolbar>input{max-width:none;min-height:44px;font-size:12px}
 .toolbar label{font-size:10px;align-self:flex-end}
 .stage-tabs{
  position:sticky;top:0;background:#101014f5;
  backdrop-filter:blur(10px);z-index:5;
  gap:3px;padding:10px 0;margin-bottom:14px
 }
 .stage-tabs button{
  font-size:10px;padding:8px 10px;min-height:36px
 }
 .stage-tabs button[data-view=all]{display:none}
 .board,.board:has(.column:nth-child(4)){
  grid-template-columns:1fr!important
 }
 .car{padding:18px;margin-bottom:12px}
 .car h3{font-size:21px}
 .car .vin{font-size:16px}
 .car .timer{font-size:13px}
 .actions button{font-size:11px;min-height:43px}
 footer{font-size:9px}
 dialog{padding:22px}
 dialog h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
 *{transition:none!important;scroll-behavior:auto!important}
}

/* makvin-refinement-v2 */
:root{--red:#7f203a;--line:#36363b;--muted:#a3a1a6;background:#191a1d}
body{background:linear-gradient(135deg,#242528,#17181b);color:#f0eeed}
header small,.workspace-label{color:#99979c}
h1,dialog h2,.car h3,.column h2{
 font-family:Georgia,"Times New Roman",serif;
 font-weight:500;letter-spacing:-.3px
}
h1{font-size:35px}
.brand-line{border-bottom-color:#414145}
.brand-line.has-logo>span{display:none}
.detailing-logo{
 display:block;width:240px;max-width:75%;height:100px;
 object-fit:contain;object-position:left center;mix-blend-mode:screen
}
.brand-line:not(.has-logo) .detailing-logo{display:none}
#add{
 background:linear-gradient(120deg,#7d233c,#5b172b);
 border-color:#8c3b50;box-shadow:0 5px 22px #0003
}
#add:hover{background:#8c2a46}
.dashboard-stats button{
 background:linear-gradient(140deg,#2a2b2e,#202124);
 border-color:#535257;box-shadow:none
}
.dashboard-stats span{color:#c0bcc0}
.dashboard-stats strong{
 font-family:Georgia,"Times New Roman",serif;
 color:#f0eeed!important;font-weight:400
}
.panel{background:#242528;border-color:#454449}
.notification-settings summary{color:#d1cbd0}
.toolbar>input{
 background:#242528;border-color:#525055;border-radius:11px
}
.toolbar label:has(#archive){display:none!important}
.stage-tabs{border-bottom-color:#434146}
.stage-tabs button{
 border-radius:0;color:#c0b9bf;border:0;
 border-bottom:3px solid transparent
}
.stage-tabs button.selected{
 color:#fff;background:transparent;border-bottom-color:#af4264
}
.stage-tabs button:hover{background:#ffffff06}
.car{
 background:linear-gradient(140deg,#292a2d,#222326);
 border:1px solid #555157;border-left:1px solid #555157;
 border-radius:14px;box-shadow:0 5px 18px #0002
}
.car h3{font-size:22px;color:#f4f1ef}
.car .vin{
 background:#3b3a3e;border-color:#4a474d;
 border-radius:20px;color:#ece7eb;font-size:13px
}
.car p{color:#b4adb5}
.car .timer{border-top-color:#454048;color:#e3dbe1}
.diagnostic{color:#c8c0c8!important}
.actions button{
 background:transparent;border:1px solid #91858e;
 color:#efe7ed;border-radius:9px
}
.actions button[data-action=work],
.actions button[data-action=diagnosed]{
 background:#4a2938;border-color:#805366;color:#f5e5ed
}
.actions button[data-action=done]{
 background:#72233c;border-color:#91455f;color:#fff
}
.actions button[data-action=restore]{
 background:transparent;border-color:#b3a2ad;color:#f1e7ee
}
.car.urgent{
 background:linear-gradient(140deg,#362930,#2b2228);
 border:1px solid #a05b72;border-left:3px solid #c45c7c
}
.car.overdue{
 background:linear-gradient(140deg,#41232f,#302029);
 border:1px solid #bd5778;border-left:3px solid #f17898
}
.urgent .timer,.overdue .timer{color:#ffa6c0}
dialog{background:#242326;border-color:#685361}
dialog button[type=submit]{background:#7f203a;border-color:#97445f}
main[data-view=all]:not([data-searching=true]) #cars>.column:nth-child(4){
 display:none
}
main[data-searching=true] #cars{
 grid-template-columns:repeat(3,minmax(0,1fr))
}
main[data-searching=true] #cars>.column{
 display:block!important;grid-column:auto;
 max-width:none;width:100%;margin:0
}
main[data-searching=true] #cars>.column.search-empty{display:none!important}
.search-noresults{grid-column:1/-1}
main[data-searching=true] .stage-tabs button.selected{
 border-bottom-color:transparent;color:#c0b9bf
}
@media(max-width:700px){
 .stage-tabs{background:#1d1e20f5}
 h1{font-size:31px}
 .car h3{font-size:23px}
 .detailing-logo{width:220px;height:85px}
 main[data-searching=true] #cars{grid-template-columns:1fr}
}

/* LOGO-CENTER-V3 */
body{background:#202124!important}
.brand-line{
 justify-content:center!important;
 border-bottom:none!important;
 padding:0!important;
 margin-bottom:24px!important;
}
.brand-line .detailing-logo{
 display:block;
 width:220px!important;
 max-width:80%!important;
 height:125px!important;
 object-fit:contain;
 object-position:center!important;
 margin:0 auto!important;
 mix-blend-mode:lighten;
}

/* Компактная шапка */
main{
 padding-top:10px!important;
}
.brand-line{
 padding:0!important;
 margin:0 0 12px!important;
 height:90px;
 overflow:hidden;
}
.brand-line .detailing-logo{
 width:300px!important;
 max-width:100%!important;
 height:90px!important;
 transform:scale(1.8);
 transform-origin:center;
}
header small{
 display:none!important;
}
header{
 margin-bottom:20px!important;
}
