:root{--ink:#202b37;--muted:#798493;--line:#e6eaf0;--navy:#132e4c;--blue:#2378c8;--paper:#fff;--bg:#f5f7fa;--shadow:0 18px 60px rgba(24,45,70,.1);font-family:'DM Sans',Arial,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
h1,h2,h3,h4,p{margin-top:0}
button,input{font:inherit}
.login-page,.setup-page,.error-page{min-height:100vh;background:linear-gradient(135deg,#edf3f8,#f8fafc);display:grid;place-items:center;padding:28px}
.login-shell{width:min(1050px,100%);min-height:650px;display:grid;grid-template-columns:1fr 1fr;background:white;border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.login-brand{background:linear-gradient(150deg,#133b5f,#0e2944);color:#fff;padding:46px;display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden}
.login-brand:after{content:'';position:absolute;width:430px;height:430px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-170px;bottom:-140px;box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 85px rgba(255,255,255,.025);z-index:-1}
.brand-logo{width:88px;height:88px;border-radius:8px;object-fit:contain}
.brand-copy{margin:auto 0;max-width:380px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:#b9c9d8}
.accent{color:var(--blue)}
.brand-copy h1,.welcome-row h1,.setup-card h1{font:800 clamp(31px,4vw,44px)/1.14 Manrope,Arial,sans-serif;letter-spacing:-.04em;margin:18px 0}
.brand-copy p{color:#c1cedb;line-height:1.7;max-width:345px}
.brand-foot{font-size:12px;color:#bbcad8}
.brand-foot span,.panel-footer span{padding:0 6px;color:#91a3b6}
.login-panel{padding:48px 56px 28px;display:flex;flex-direction:column;justify-content:center}
.login-card{width:min(360px,100%);margin:auto}
.login-card h2{font:700 28px Manrope,Arial,sans-serif;letter-spacing:-.03em;margin:14px 0 7px}
.muted{color:var(--muted);line-height:1.6;font-size:14px}
.login-card>p{margin-bottom:32px}
.login-card form label,.setup-card label{display:block;font-weight:600;font-size:13px;margin:18px 0 8px}
.login-card input,.setup-card input{width:100%;height:48px;border:1px solid #dce2e9;border-radius:9px;padding:0 13px;color:var(--ink);outline:none;background:#fff}
.login-card input:focus,.setup-card input:focus{border-color:#68a6dc;box-shadow:0 0 0 3px #e5f2fc}
.password-wrap{position:relative}
.password-wrap input{padding-right:80px}
.password-toggle{position:absolute;right:10px;top:0;height:48px;border:0;background:none;color:#5b7186;font-weight:600;font-size:12px;cursor:pointer}
.button-primary{height:48px;border:0;border-radius:9px;background:#176eaf;color:#fff;font-weight:700;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;transition:background .2s,transform .2s}
.button-primary:hover{background:#125c94;transform:translateY(-1px)}
.button-primary:disabled{opacity:.65;cursor:wait;transform:none}
.login-card .button-primary{width:100%;margin-top:24px}
.login-help{font-size:12px;line-height:1.55;color:#87919e;margin:24px 0 0}
.panel-footer{text-align:center;font-size:11px;color:#8b96a3;padding-top:30px}
.form-error{color:#aa3131;background:#fff1f0;border-radius:8px;padding:10px 12px;font-size:13px;margin:14px 0 0}
.topbar{height:72px;padding:0 clamp(18px,4vw,56px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}
.topbar-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:700}
.topbar-brand img{width:38px;height:38px;object-fit:contain;border-radius:5px}
.topbar-brand span{border-left:1px solid var(--line);padding-left:12px}
.topbar-right,.user-chip{display:flex;align-items:center;gap:16px}
.user-chip{gap:9px;font-size:13px;font-weight:600}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7f1fa;color:#21689f;font-size:13px}
.logout-link{font-size:13px;color:#526478;text-decoration:none}
.logout-link:hover{color:var(--blue)}
.dashboard-main{max-width:1500px;margin:auto;padding:36px clamp(18px,4vw,56px) 60px}
.welcome-row,.board-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.welcome-row h1{font-size:32px;margin:8px 0}
.welcome-row p,.board-heading p{margin:0}
.today{text-align:right;display:grid;gap:5px;font-size:11px;color:#87919e;letter-spacing:.08em}
.today strong{color:#314050;font-size:13px;letter-spacing:0}
.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:30px 0 40px}
.summary-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px;display:flex;align-items:center;gap:14px}
.summary-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-size:19px}
.summary-icon.blue{background:#e9f3fc;color:#2378c8}
.summary-icon.amber{background:#fff5dd;color:#bf8725}
.summary-icon.green{background:#e7f5eb;color:#399359}
.summary-card div{display:grid;gap:4px}
.summary-label{font-size:12px;color:#7b8794}
.summary-card strong{font:700 22px Manrope,Arial,sans-serif}
.board-heading{align-items:center;margin-bottom:18px}
.board-heading h2{font:700 20px Manrope,Arial,sans-serif;margin:0 0 4px}
.board-heading p{font-size:13px}
.board-count,.column-count{font-size:12px;color:#738092;background:#f0f3f6;border-radius:20px;padding:5px 10px}
.board-scroll-hint{display:none}
.board{display:flex;align-items:flex-start;gap:15px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 16px;scrollbar-color:#c7d1db #eef1f5;scrollbar-width:thin}
.board-column{flex:1 0 200px;max-width:340px;scroll-snap-align:start;background:#eef1f5;border-radius:12px;padding:14px;min-height:250px}
.column-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}
.column-heading>div{display:flex;align-items:center;gap:9px}
.column-heading h3{font-size:13px;margin:0;font-weight:700}
.column-dot{width:10px;height:10px;background:#c9d4de;border-radius:50%}
.column-count{padding:3px 8px}
.wip-limit{font-size:11px;color:#788493;margin:-4px 0 11px}
.card-list{display:grid;gap:10px}
  .project-card{position:relative;border-radius:9px;background:var(--card-color,#fff);padding:17px 14px 13px;box-shadow:0 2px 5px rgba(35,50,65,.06);border:1px solid rgba(40,55,70,.06)}
  .project-name-link{color:inherit;text-decoration:none;border-radius:2px}
  .project-name-link:hover{text-decoration:underline;text-decoration-color:#4389bd;text-underline-offset:3px}
  .project-name-link:focus-visible{outline:3px solid #388bc4;outline-offset:3px}
.card-pin{position:absolute;top:10px;right:13px;width:6px;height:6px;border-radius:50%;background:#8291a0;opacity:.5}
.project-card h4{font-size:13px;line-height:1.45;margin:1px 10px 7px 0}
.card-client{font-size:11px;color:#627183;margin:0 0 7px}
.card-description{font-size:11px;color:#6e7885;line-height:1.5;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#7e8996;font-size:10px;margin-top:10px}
.responsible{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-dialog{width:min(920px,calc(100vw - 28px));max-width:none;height:min(820px,calc(100dvh - 28px));max-height:none;padding:0;border:0;border-radius:16px;background:#f6f8fb;color:#273646;box-shadow:0 24px 80px rgba(16,31,49,.28);overflow:hidden}
.project-dialog::backdrop{background:rgba(18,32,48,.55);backdrop-filter:blur(3px)}
.project-dialog-heading{height:76px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e7ebf0}
.project-dialog-heading .eyebrow{font-size:9px}.project-dialog-heading h2{margin:3px 0 0;font:750 18px/1.2 Manrope,Arial,sans-serif;letter-spacing:-.025em}
.project-dialog-close{width:36px;height:36px;border:0;border-radius:9px;background:#f2f5f8;color:#58697a;font-size:25px;line-height:1;cursor:pointer}
.project-dialog-close:hover{background:#e7edf3}
.project-dialog iframe{display:block;width:100%;height:calc(100% - 76px);border:0;background:#f6f8fb}
.empty-column{padding:24px 8px;text-align:center;color:#98a2ad;font-size:12px;border:1px dashed #d6dce3;border-radius:8px}
.setup-card,.error-card{width:min(470px,100%);padding:38px;background:#fff;border-radius:18px;box-shadow:var(--shadow)}
.setup-logo{display:block;width:64px;height:64px;object-fit:contain;border-radius:6px;margin-bottom:28px}
.setup-card h1,.error-card h1{font-size:27px;margin:12px 0}
.setup-card form{margin-top:20px}
.setup-card .button-primary{width:100%;margin-top:23px}
.error-card .button-primary{padding:0 20px;width:max-content;margin-top:24px}
.error-page{font-family:inherit}

@media(max-width:760px){.login-page,.setup-page,.error-page{padding:14px}
.login-shell{grid-template-columns:1fr;min-height:0;border-radius:16px}
.login-brand{padding:24px 25px;min-height:200px}
.brand-logo{width:72px;height:72px}
.brand-copy{margin:35px 0 12px}
.brand-copy h1{font-size:27px;margin:10px 0}
.brand-copy p{font-size:13px;margin-bottom:5px}
.brand-foot{position:absolute;right:24px;top:30px}
.login-panel{padding:34px 25px 22px}
.login-card h2{font-size:25px}
.login-card>p{margin-bottom:24px}
.panel-footer{padding-top:25px}
.dashboard-main{padding-top:25px}
.welcome-row{align-items:flex-start}
.welcome-row h1{font-size:27px}
.today{padding-top:7px}
.summary-grid{gap:9px;margin:22px 0 30px}
.summary-card{padding:13px 11px;gap:8px}
.summary-icon{width:32px;height:32px}
.summary-label{font-size:10px}
.summary-card strong{font-size:19px}
.board{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:12px}
.board-column{flex:0 0 82vw;max-width:320px;scroll-snap-align:start}
.board-scroll-hint{display:block;margin:-5px 0 10px;color:#788493;font-size:11px}
.user-name{display:none}
.topbar{height:62px}
.topbar-brand img{width:34px;height:34px}
.setup-card,.error-card{padding:28px 23px}
}

@media(max-width:420px){.welcome-row{display:block}
.today{display:flex;justify-content:flex-start;gap:8px;margin-top:14px}
.summary-grid{grid-template-columns:1fr}
.summary-card{padding:12px 15px}
.summary-icon{width:36px;height:36px}
.summary-label{font-size:11px}
.board-heading{align-items:flex-start}
.board-heading p{max-width:230px}
.board-count{white-space:nowrap}
.topbar-right{gap:11px}
}

