@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--accent:#315efb;--ink:#17233b;--muted:#697790;--line:#e8edf5;--bg:#f5f7fb;--white:#fff;--shadow:0 8px 30px rgba(21,38,72,.05)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:14px/1.55 'DM Sans',system-ui,sans-serif;background:var(--bg)}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:29px;line-height:1.2;margin:0 0 7px;font-weight:800;letter-spacing:-.04em}h2{font-size:19px;margin:0 0 18px;letter-spacing:-.025em}h3{font-size:15px;margin:0 0 10px}p{margin:0 0 16px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;background:#111d35;color:#bdc8df;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:18px;font-weight:800;padding:26px 23px 31px;letter-spacing:-.04em}.brand:hover{text-decoration:none}.brand small,.side-bottom small{display:block;color:#8392ad;font:600 9px Manrope,sans-serif;letter-spacing:.16em;margin-top:2px}.brand-mark{width:35px;height:35px;background:linear-gradient(145deg,#547dff,#2950da);color:#fff;border-radius:11px;display:grid;place-items:center;box-shadow:0 5px 14px rgba(47,92,250,.3)}.sidebar nav{display:grid;gap:4px;padding:0 12px}.nav-link{display:flex;align-items:center;gap:12px;color:#b0bfd8;border-radius:10px;padding:10px 13px;font-weight:600}.nav-link:hover,.nav-link.selected{background:#223252;color:#fff;text-decoration:none}.nav-icon{width:23px;text-align:center;font-size:17px}.side-bottom{margin-top:auto;border-top:1px solid #2c3952;padding:22px;font-weight:700;color:#fff}.side-bottom form{margin-top:10px}.side-bottom button{color:#aebbd2;padding:0}.app-main{min-width:0;display:flex;flex-direction:column;flex:1}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.crumb{font-weight:800;font-family:Manrope}.top-user{display:flex;align-items:center;gap:12px;color:#62718a;font-weight:600}.avatar{width:34px;height:34px;border-radius:50%;background:#dfe8ff;color:#315efb;display:grid;place-items:center}.menu-toggle{display:none;background:none;border:0;font-size:22px}.content{width:min(1260px,100%);margin:0 auto;padding:35px 34px 60px;flex:1}.app-main footer{padding:20px 34px;border-top:1px solid var(--line);color:#8b99ae;text-align:center;font-size:12px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-head p{color:var(--muted);margin:0}.head-actions{display:flex;gap:8px;flex-wrap:wrap}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}.card.tight{padding:0}.stat{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:13px;font-weight:600}.stat strong{font:800 27px Manrope;color:var(--ink);letter-spacing:-.04em}.stat-icon{width:40px;height:40px;border-radius:11px;background:#edf2ff;color:var(--accent);display:grid;place-items:center;font-size:21px;margin-bottom:4px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;min-height:39px;padding:8px 14px;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}.btn:hover{text-decoration:none;filter:brightness(.96)}.btn.primary{background:var(--accent);color:white}.btn.ghost{background:#eef2ff;color:var(--accent)}.btn.danger{background:#fff1f0;color:#c74745}.btn.text{background:transparent;color:inherit;padding:0;min-height:auto}.btn.small{min-height:30px;padding:4px 10px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.field{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;min-width:0}.field span{font-weight:700;font-size:12px;color:#46556e}.field input,.field select,.field textarea{border:1px solid #dbe3ef;border-radius:9px;background:white;color:var(--ink);padding:10px 12px;width:100%;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #315efb20}.field textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.check{display:flex;gap:8px;align-items:center;margin:8px 0 16px}.check input{accent-color:var(--accent)}.hint{font-size:12px;color:var(--muted)}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;min-width:520px}th{text-align:left;color:#7c8ba3;font:700 11px Manrope;letter-spacing:.08em;text-transform:uppercase;background:#fbfcff}th,td{padding:13px 17px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}.pill{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef1f6;color:#59667b;font-size:11px;font-weight:800;white-space:nowrap}.pill-active,.pill-paid,.pill-approved,.pill-completed,.pill-resolved{background:#dff7eb;color:#147956}.pill-open,.pill-development,.pill-proposed,.pill-pending{background:#e9efff;color:#3359bc}.pill-overdue,.pill-error,.pill-cancelled,.pill-disabled,.pill-rejected{background:#ffe9e9;color:#b94343}.pill-trial,.pill-waitingclient{background:#fff3d9;color:#a36e00}.alert{padding:12px 16px;border-radius:10px;margin-bottom:20px;background:#e9f5ec;color:#216940}.alert.error{background:#ffeded;color:#a63838}.empty{text-align:center;padding:34px;color:var(--muted)}.empty-icon{font-size:34px;color:#aab7d0}.list-item{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:13px 0}.list-item:last-child{border-bottom:0}.list-item small{display:block;color:var(--muted)}.progress{height:8px;background:#e8eef8;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:var(--accent)}.timeline{border-left:2px solid #dbe5fa;margin-left:8px;padding-left:20px}.timeline-item{position:relative;margin-bottom:20px}.timeline-item:before{content:'';position:absolute;left:-26px;top:4px;width:10px;height:10px;background:var(--accent);border-radius:50%}.meta{color:var(--muted);font-size:12px}.message{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px;background:#fff}.message.internal{background:#fff9ec;border-color:#f2dfb3}.message p{white-space:pre-wrap;margin:8px 0 0}.divider{height:1px;background:var(--line);margin:20px 0}.auth-shell{background:#eff3fa;min-height:100vh}.auth-background{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px;background:radial-gradient(circle at 15% 15%,#dce7ff 0,transparent 34%),radial-gradient(circle at 80% 80%,#e7eafe 0,transparent 33%),#f7f9fd}.auth-brand{display:flex;align-items:center;gap:10px;font:800 20px Manrope;margin-bottom:24px}.auth-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 25px 65px rgba(32,51,88,.1)}.auth-card h1{font-size:25px;margin-bottom:8px}.auth-card p{color:var(--muted)}.auth-card .btn{width:100%}.auth-footer{margin-top:24px;color:#8794a9;font-size:12px}.badge{background:#edf2ff;color:#315efb;border-radius:10px;padding:4px 9px;font-size:11px;font-weight:700}.code{font-family:monospace;word-break:break-all;background:#f5f7fb;border:1px solid var(--line);padding:12px;border-radius:9px}.section-gap{margin-top:24px}.text-right{text-align:right}.muted{color:var(--muted)}
@media(max-width:1000px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{position:fixed;z-index:20;left:-255px;transition:left .2s}.menu-open .sidebar{left:0}.menu-toggle{display:block}.topbar{padding:0 19px}.top-user{font-size:0}.content{padding:24px 17px 50px}.grid.two,.grid.three,.grid.four,.form-grid{grid-template-columns:1fr}.page-head{flex-direction:column}.head-actions{width:100%}.auth-card{padding:26px}.card{padding:18px}}
.service-option{border:1px solid var(--line);border-radius:11px;padding:12px 14px;margin:10px 0;background:#fbfcff}.service-option>summary{cursor:pointer;line-height:1.7}.service-option>form,.service-option>.form-grid{padding-top:16px}.service-option .check{display:inline-flex;margin:0 4px 0 0}.inline-edit{position:relative}.inline-edit>summary{cursor:pointer;color:var(--accent);font-weight:700;list-style:none}.inline-edit[open]{width:min(340px,80vw)}.inline-edit form{padding:14px;margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}@media(max-width:760px){.list-item{align-items:flex-start;flex-wrap:wrap}.service-option>summary{word-break:break-word}}
.pill-pendingpayment,.pill-proposed{background:#fff3d9;color:#946200;white-space:normal}.payment-callout{border-left:4px solid var(--accent);margin-bottom:24px}.payment-callout p{max-width:850px}
.brand-logo{display:block;max-width:64px;max-height:46px;object-fit:contain;flex:none}.brand-copy{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.22}.brand-copy small{overflow-wrap:anywhere}.auth-brand .brand-copy{color:var(--ink)}.auth-brand .brand-copy small{color:var(--muted)}.site-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.site-preview{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:155px;padding:14px 16px;border:1px solid #dbe3ef;border-radius:12px;background:#f8faff}.site-preview strong{font-size:12px}.site-preview small{font-size:11px;color:var(--muted)}.site-preview-media{display:grid;place-items:center;min-height:75px;overflow:hidden}.site-preview img{max-width:100%;max-height:72px;object-fit:contain}.site-preview-name{font:800 20px Manrope;color:var(--accent);letter-spacing:-.04em;overflow-wrap:anywhere}.site-preview-dark{background:#111d35;color:white;border-color:#2c3952}.site-preview-dark .site-preview-name{color:white}.site-preview-dark small{color:#bac7de}.site-preview-favicon .site-preview-media img{max-width:58px;max-height:58px}.site-preview-empty{color:var(--muted);font-size:12px}.site-asset-field{padding:14px 0;border-top:1px solid var(--line)}.site-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.site-details>div{display:flex;flex-direction:column;gap:3px}.site-details strong{font-size:12px;color:var(--muted)}@media(max-width:760px){.site-previews,.site-details{grid-template-columns:1fr}}
.brand-logo-only{max-width:100%;max-height:72px;width:auto;height:auto}.sidebar .brand{min-height:112px}.auth-brand .brand-logo-only{max-width:min(280px,75vw);max-height:90px}.brand-copy{font-size:20px}.brand-copy small{font-size:10px;line-height:1.4}.menu-backdrop,.drawer-close{display:none}.account-menu{position:relative;margin-left:auto;z-index:12}.account-menu summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 7px 4px 12px;border-radius:12px;cursor:pointer;color:#536680;font-weight:700}.account-menu summary::-webkit-details-marker,.sidebar-account summary::-webkit-details-marker{display:none}.account-menu[open] summary,.account-menu summary:hover{background:#f1f5fc}.account-name{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chevron{font-size:18px}.account-popover{position:absolute;right:0;top:calc(100% + 7px);min-width:190px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:7px;box-shadow:0 18px 45px rgba(15,32,62,.16)}.account-popover a,.account-popover button{display:block;width:100%;padding:10px 12px!important;border-radius:8px;color:var(--ink)!important;text-align:left;font-weight:700}.account-popover a:hover,.account-popover button:hover{background:#f1f5fc;text-decoration:none}.account-popover form{margin:0}.sidebar-account summary{list-style:none;cursor:pointer;padding:4px 0}.sidebar-account summary:after{content:'⌄';float:right;color:#aebbd2}.sidebar-account[open] summary:after{content:'⌃'}.sidebar-account-links{display:grid;gap:4px;margin-top:12px}.sidebar-account-links a,.sidebar-account-links button{display:block;width:100%;padding:8px 10px!important;border-radius:8px;text-align:left;color:#e8efff!important;font-weight:700}.sidebar-account-links a:hover,.sidebar-account-links button:hover{background:#223252;text-decoration:none}.sidebar-account-links form{margin:0}.sidebar .brand-copy{font-size:20px}
@media(max-width:760px){body.menu-open{overflow:hidden}.sidebar{width:min(300px,86vw);left:0;transform:translateX(-105%);transition:transform .22s;z-index:31;overflow-y:auto}.menu-open .sidebar{transform:translateX(0)}.drawer-close{display:grid;position:absolute;right:13px;top:14px;z-index:2;width:34px;height:34px;place-items:center;background:#243553;color:#fff;border:0;border-radius:9px;font-size:24px;line-height:1}.sidebar .brand{padding:27px 56px 25px 22px}.menu-backdrop{display:block;position:fixed;inset:0;background:rgba(9,18,37,.55);border:0;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;z-index:30}.menu-open .menu-backdrop{opacity:1;visibility:visible}.topbar{gap:10px}.crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.account-menu summary{gap:5px;padding:2px 0}.account-name{max-width:92px;font-size:12px}.account-chevron{font-size:15px}.account-popover{right:-4px}.brand-logo-only{max-width:100%}}
.project-task-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.project-task-head h2{margin:5px 0}.project-task-head p{margin:0}.project-task-head>strong{font:800 27px Manrope;color:var(--accent)}.eyebrow{font:800 10px Manrope;letter-spacing:.16em;color:var(--accent)}.progress-large{height:10px;margin:20px 0 25px}.stage-card{border:1px solid var(--line);border-radius:15px;margin:0 0 14px;overflow:hidden;background:#fff}.stage-current{border-color:#a9bfff;box-shadow:0 7px 22px rgba(49,94,251,.08)}.stage-heading{display:flex;align-items:center;gap:12px;padding:16px 17px;background:#f9fbff}.stage-current .stage-heading{background:#eff4ff}.stage-completed .stage-heading{background:#f2faf6}.stage-number{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;background:#e6ecf7;color:#596b87;font:800 12px Manrope}.stage-current .stage-number{background:var(--accent);color:#fff}.stage-completed .stage-number{background:#d6f2e4;color:#147956}.stage-heading-text{min-width:0;flex:1}.stage-heading-text h3{margin:0 0 1px;font-size:15px}.stage-heading-text span{font-size:11px;color:var(--muted)}.stage-status{font-size:11px;font-weight:800;color:#64738d;white-space:nowrap}.stage-current .stage-status{color:var(--accent)}.stage-completed .stage-status{color:#147956}.stage-tasks{padding:4px 17px}.stage-task{display:flex;gap:11px;align-items:flex-start;padding:13px 0;border-top:1px solid var(--line)}.stage-task:first-child{border-top:0}.task-check{width:20px;height:20px;flex:none;margin-top:1px;border:2px solid #cbd6e8;border-radius:50%;display:grid;place-items:center;font-size:12px;color:white}.stage-task.is-complete .task-check{background:#20a56e;border-color:#20a56e}.stage-task-content{flex:1;min-width:0}.stage-task-content strong{display:block;font-size:13px}.stage-task-content p{margin:4px 0 0;color:var(--muted);font-size:12px;white-space:normal}.task-date{display:inline-block;margin-top:7px;color:#687a96;font-size:11px;font-weight:700}.task-actions{display:flex;gap:6px;align-items:flex-start}.task-actions form{margin:0}@media(max-width:760px){.stage-heading{flex-wrap:wrap}.stage-status{width:100%;padding-left:46px}.stage-task{flex-wrap:wrap}.task-actions{width:100%;padding-left:31px}.project-task-head>strong{font-size:23px}}
.profile-layout{grid-template-columns:minmax(0,1.55fr) minmax(260px,.85fr)}@media(max-width:900px){.profile-layout{grid-template-columns:1fr}}
