@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{--ink:#20212a;--muted:#777b89;--line:#ececf1;--paper:#fff;--canvas:#f7f7fa;--orange:#ff8b28;--gold:#ffd34e;--deep:#1b1720;--green:#1e9d79;--red:#d85b56;--shadow:0 12px 32px rgba(30,25,40,.05)}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:248px;background:#1c1820;color:#fff;position:fixed;inset:0 auto 0 0;padding:25px 16px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;padding:0 7px 30px}.brand img{width:46px;height:40px;object-fit:contain}.brand b{display:block;font:800 16px Manrope,sans-serif;letter-spacing:-.5px}.brand small{display:block;color:#f7a23e;font-size:9px;font-weight:700;letter-spacing:2px;margin-top:4px}.workspace-label{font-size:10px;color:#8c8492;letter-spacing:1.6px;font-weight:700;padding:0 12px 12px}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#bdb7c4;text-align:left;padding:12px;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:13px}.nav-item:first-letter{font-size:18px}.nav-item:hover,.nav-item.active{background:linear-gradient(100deg,#ff8c2b,#f6b52f);color:#241b19;font-weight:700}.sidebar-bottom{margin-top:auto;border-top:1px solid #39313d;padding:19px 5px 0;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:12px;background:#ffb340;color:#291d1c;display:grid;place-items:center;font-weight:800}.sidebar-bottom b{display:block;font-size:12px}.sidebar-bottom small{display:block;color:#a9a0af;font-size:11px;margin-top:4px}.main{margin-left:248px;width:calc(100% - 248px);min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;gap:14px;position:sticky;top:0;z-index:5}.crumb{color:#9996a1;font-size:12px}.crumb span{padding:0 10px;color:#d0cdd4}.crumb b{color:#3a3741}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px;color:#777b89;font-size:12px}.live-dot{width:7px;height:7px;background:#25bd8a;border-radius:50%;box-shadow:0 0 0 4px #e7f8f1}.icon-btn{border:1px solid var(--line);background:#fff;width:34px;height:34px;border-radius:10px;color:#575360;font-size:19px;display:grid;place-items:center}.menu-btn{display:none;border:0;background:transparent;font-size:22px}.page{padding:31px 34px 22px;max-width:1600px;margin:auto}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{color:#e88123;font-weight:800;font-size:10px;letter-spacing:1.7px;margin:0 0 9px}.welcome-row h1{font:800 clamp(23px,2.5vw,31px) Manrope,sans-serif;letter-spacing:-1.2px;margin:0}.welcome-row h1 span{color:#f6a92c}.subhead{color:var(--muted);margin:8px 0 0}.primary-btn,.secondary-btn,.danger-btn{border:0;border-radius:10px;padding:11px 15px;font-weight:700;font-size:12px;white-space:nowrap}.primary-btn{background:linear-gradient(100deg,#ff8b28,#ffbd39);color:#251b16;box-shadow:0 5px 13px #ffad3830}.primary-btn:hover{filter:brightness(.97);transform:translateY(-1px)}.secondary-btn{background:#f1f1f5;color:#514d59}.danger-btn{background:#fff0ef;color:#b63e39}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card,.panel,.client-card{background:#fff;border:1px solid #eeeeF3;border-radius:16px;box-shadow:var(--shadow)}.stat-card{padding:19px 19px 17px;position:relative;overflow:hidden}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#777b89;font-size:12px}.stat-icon{width:34px;height:34px;border-radius:11px;background:#fff0df;display:grid;place-items:center;font-size:17px;color:#e77c22}.stat-number{font:800 29px Manrope,sans-serif;margin:13px 0 5px;letter-spacing:-1px}.stat-note{font-size:11px;color:#8b8b96}.stat-note strong{color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);gap:18px}.panel{padding:21px;margin-bottom:18px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.panel-head h2{font:800 15px Manrope,sans-serif;margin:0}.panel-head p{color:#8a8793;font-size:11px;margin:5px 0 0}.text-btn{border:0;background:transparent;color:#e47d22;font-weight:700;font-size:11px}.progress-list{display:grid;gap:17px}.progress-row{display:grid;grid-template-columns:minmax(90px,1fr) 2fr 38px;gap:12px;align-items:center;font-size:12px}.progress-track{height:7px;background:#f0eff3;border-radius:99px;overflow:hidden}.progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff8b28,#ffd14b)}.progress-row b{font-size:11px;text-align:right}.task-list{display:grid;gap:0}.task-row{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid #f0eff3}.task-row:last-child{border:0;padding-bottom:0}.task-check{appearance:none;width:17px;height:17px;border:1.5px solid #d9d6df;border-radius:5px;margin:2px 0 0;flex-shrink:0;cursor:pointer}.task-check:checked{background:#20a17c;border-color:#20a17c;box-shadow:inset 0 0 0 4px white}.task-info{flex:1;min-width:0}.task-info b{font-size:12px;display:block}.task-info small{color:#8b8792;display:block;margin-top:5px;font-size:11px}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:700;background:#f3f3f6;color:#66616e;white-space:nowrap}.pill.orange{background:#fff0dc;color:#b76517}.pill.green{background:#e5f7ef;color:#167b5d}.pill.red{background:#ffeded;color:#b54444}.pill.blue{background:#eaf1ff;color:#4267b2}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{text-align:left;color:#898692;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:12px 10px;border-bottom:1px solid var(--line)}.data-table td{padding:14px 10px;border-bottom:1px solid #f1f0f4;font-size:12px}.data-table tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:9px}.person-avatar{width:31px;height:31px;border-radius:10px;background:#fff0dd;color:#b76a1e;display:grid;place-items:center;font-weight:800;font-size:10px;flex-shrink:0}.person b{display:block;font-size:12px}.person small{display:block;color:#8a8792;font-size:10px;margin-top:3px}.search-row{display:flex;gap:10px;margin-bottom:16px}.search-input{flex:1;min-width:130px;border:1px solid #e8e7ed;background:#fff;border-radius:10px;padding:10px 12px;outline:none}.search-input:focus,input:focus,select:focus,textarea:focus{border-color:#f6a63c;box-shadow:0 0 0 3px #ffb73b20;outline:none}.filter-select{border:1px solid #e8e7ed;border-radius:10px;padding:10px;background:#fff;color:#615d69}.empty{padding:35px 15px;text-align:center;color:#898692}.empty .empty-icon{font-size:27px;margin-bottom:10px}.empty b{display:block;color:#393540;margin-bottom:6px}.empty p{font-size:12px;line-height:1.6}.client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.client-card{padding:17px}.client-card-top{display:flex;align-items:center;gap:10px}.client-card h3{margin:0;font-size:13px}.client-card p{margin:5px 0 0;color:#898692;font-size:11px}.client-meta{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.client-footer{border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;align-items:center}.small-btn{border:1px solid var(--line);background:white;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:700}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.day-label{text-align:center;font-size:10px;color:#8a8792;padding:8px 0}.day-cell{min-height:95px;border:1px solid #efedf2;border-radius:9px;background:#fff;padding:7px;min-width:0}.day-cell.muted{background:#faf9fb;color:#c0bdc6}.day-num{font-size:11px;font-weight:700}.event{display:block;margin-top:7px;border-radius:5px;padding:5px;font-size:9px;line-height:1.3;background:#fff0dc;color:#9d5b17;overflow:hidden;word-break:break-word}.event.blue{background:#eaf1ff;color:#3f5da1}.event.green{background:#e5f7ef;color:#197454}.content-status{display:flex;gap:7px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:700;color:#5d5865}.field input,.field select,.field textarea{width:100%;border:1px solid #e7e5ec;border-radius:9px;padding:11px;background:#fff;min-width:0;color:#302c35}.field textarea{min-height:78px;resize:vertical}.hint{font-size:10px;color:#8a8792;line-height:1.5}.modal-backdrop{position:fixed;inset:0;background:#17121e88;z-index:30;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal{background:white;border-radius:18px;padding:24px;width:min(620px,100%);max-height:90vh;overflow:auto;box-shadow:0 30px 80px #120b1e50}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h2{font:800 21px Manrope;margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.toast{position:fixed;right:22px;bottom:22px;z-index:50;background:#24202a;color:white;padding:13px 17px;border-radius:11px;box-shadow:var(--shadow);font-size:12px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}footer{padding:25px 2px 0;color:#96929d;font-size:10px}.footer-right{float:right}.security-note{background:#fff8e9;border:1px solid #ffe4ad;border-radius:10px;padding:12px;font-size:11px;color:#8d5a18;line-height:1.6}.metric-line{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0eff3;font-size:12px}.metric-line:last-child{border-bottom:0}.metric-line b{font-size:12px}.action-link{border:0;background:transparent;color:#d87520;font-weight:700;font-size:11px}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page{padding:25px 22px}.topbar{padding:0 22px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .25s;width:260px;box-shadow:10px 0 35px #17121e20}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.menu-btn{display:block}.topbar{height:61px;padding:0 16px}.top-label{display:none}.page{padding:23px 15px 18px}.welcome-row{align-items:flex-start;flex-direction:column;margin-bottom:22px}.welcome-row .primary-btn{width:100%}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-number{font-size:25px}.dashboard-grid{grid-template-columns:1fr;gap:0}.client-grid{grid-template-columns:1fr}.panel{padding:16px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.calendar-grid{gap:3px}.day-cell{min-height:65px;padding:4px}.event{font-size:8px;padding:3px}.day-label{font-size:9px}.footer-right{float:none;display:block;margin-top:7px}.crumb{font-size:11px}.top-actions{gap:8px}}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.stat-top{font-size:10px}.stat-icon{width:29px;height:29px}.stat-number{font-size:22px}.calendar-grid{gap:2px}.day-cell{min-height:56px}.event{font-size:7px}}

/* Global */
[hidden]{display:none!important}
.auth-pending .app-shell{visibility:hidden}

/* Top search */
.top-search{flex:1;max-width:620px;height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #e8e7ed;background:var(--canvas);border-radius:12px;color:#8a8793;cursor:text;transition:background .15s,border-color .15s,box-shadow .15s}
.top-search:focus-within{background:#fff;border-color:#f6a63c;box-shadow:0 0 0 3px #ffb73b20}
.top-search-icon{font-size:18px;line-height:1}
.top-search input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--ink);outline:none}
.top-search input:focus{border:0;box-shadow:none}
.top-search kbd{font:700 10px 'DM Sans',sans-serif;color:#8a8793;border:1px solid #e3e1e8;background:#fff;border-radius:6px;padding:2px 7px}
.result-group+.result-group{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.result-label{margin:0 0 4px;font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#898692}
.result-more{margin-top:8px;padding:0}

/* Sidebar user menu */
.sidebar-bottom{position:relative;padding:14px 0 0}
.user-chip{width:100%;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:12px;text-align:left}
.user-chip:hover,.user-chip[aria-expanded=true]{background:#2a242e}
.user-meta{flex:1;min-width:0}
.user-meta b,.user-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-chev{color:#a9a0af;font-size:16px}
.user-menu{position:absolute;left:0;right:0;bottom:calc(100% + 6px);background:#2a242e;border:1px solid #3d3542;border-radius:12px;padding:6px;display:grid;gap:2px;box-shadow:0 18px 40px #0006}
.user-menu button{border:0;background:transparent;color:#e3dee7;text-align:left;padding:10px;border-radius:8px;display:flex;align-items:center;gap:10px;font-size:13px}
.user-menu button:hover{background:#3a3240;color:#fff}
.user-menu .danger{color:#ff9b95}

/* Profile settings */
.profile-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:18px;align-items:start}
.profile-card{text-align:center}
.profile-card h2{font:800 18px Manrope,sans-serif;margin:14px 0 4px}
.profile-card>p{color:var(--muted);font-size:12px;margin:0}
.profile-card .client-meta{justify-content:center}
.profile-card .metric-line{text-align:left;gap:12px}.profile-card .metric-line b{overflow-wrap:anywhere;text-align:right}
.profile-avatar{width:72px;height:72px;margin:6px auto 0;border-radius:22px;background:linear-gradient(135deg,#ff8b28,#ffd34e);color:#291d1c;display:grid;place-items:center;font:800 24px Manrope,sans-serif}
.profile-signout{width:100%;margin-top:18px}
.strength{height:5px;border-radius:99px;background:#f0eff3;overflow:hidden}
.strength span{display:block;height:100%;width:0;border-radius:99px;transition:width .2s,background .2s}
.primary-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* Client platform access rows */
.access-rows{display:grid;gap:12px;counter-reset:platform}
.access-card{counter-increment:platform;padding:14px;border:1px solid #efedf2;border-radius:12px;background:#faf9fb}
.access-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.access-card-title{font:800 13px Manrope,sans-serif}
.access-card-title::after{content:" " counter(platform)}
.access-card-head .icon-btn{width:30px;height:30px;font-size:15px}
.access-card .field>span{font-size:11px;font-weight:700;color:#5d5865}
.access-card .field textarea{min-height:58px}
.access-add{justify-self:start;padding:2px 0}

/* Client card actions & detail page */
.client-footer{flex-wrap:wrap;gap:10px}
.client-footer small{color:#898692;font-size:11px}
.card-actions{display:flex;gap:6px;margin-left:auto}
.small-btn.accent{background:#fff0df;border-color:#ffd9ae;color:#b76517}
.small-btn:hover{border-color:#f6c27a}
.client-detail-grid{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px;align-items:start}
.client-profile{position:sticky;top:90px}
.client-profile .person-avatar{width:48px;height:48px;border-radius:14px;font-size:15px}
.client-profile h3{font:800 17px Manrope,sans-serif}
.client-profile .metric-line{gap:12px}.client-profile .metric-line b{overflow-wrap:anywhere;text-align:right}
.client-profile a{color:#c46b1c;text-decoration:none}.client-profile a:hover{text-decoration:underline}
.detail-block{padding:12px 0;border-bottom:1px solid #f0eff3}
.detail-block span{display:block;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#898692;margin-bottom:6px}
.detail-block p{margin:0;font-size:12px;line-height:1.6;white-space:pre-wrap;color:#3a3741}
.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.detail-actions .primary-btn{flex:1}
.detail-empty{margin:0;color:#898692;font-size:12px}
@media(max-width:1100px){.client-detail-grid{grid-template-columns:1fr}.client-profile{position:static}}

/* Form drafts */
.modal-actions{align-items:center}
.draft-status{margin-right:auto;display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#1e9d79}
.draft-status .ic{width:13px;height:13px}
.draft-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:#e5f7ef;border:1px solid #c4ecdb;color:#167b5d;font-size:12px}
.draft-note .ic{width:15px;height:15px}
.draft-note span{flex:1}
.draft-note .text-btn{color:#167b5d}

/* Platform access on client card / page */
.platform-chips{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:12px}
.platform-chips>.ic{width:13px;height:13px;color:#a6a2ae;margin-right:2px}
.chip{font-size:10px;font-weight:600;color:#5d5865;background:#f6f5f8;border:1px solid #ecebf0;border-radius:99px;padding:3px 8px}
.secret{display:inline-flex;align-items:center;gap:6px}
.secret-value{font-family:ui-monospace,Consolas,monospace;font-size:12px;letter-spacing:.5px}
.reveal-inline{border:0;background:transparent;color:#8a8793;padding:3px;border-radius:6px;display:grid;place-items:center}
.reveal-inline:hover{background:#f1f1f5;color:var(--ink)}
.reveal-inline .ic{width:15px;height:15px}

/* Client-wise work (Projects & Tasks) */
.client-work-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.client-work-head h3{margin:0;font:800 15px Manrope,sans-serif}
.client-work-head p{margin:4px 0 0;color:#898692;font-size:11px}
.client-work-head .card-actions{margin-left:0}
.sub-head{margin:20px 0 2px;font:800 10px Manrope,sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#898692}
.client-work .detail-empty{margin-top:14px}
.section-title{margin:28px 0 14px}
.section-title h2{display:flex;align-items:center;gap:8px;margin:0;font:800 18px Manrope,sans-serif;letter-spacing:-.4px}
.section-title h2 .ic{width:19px;height:19px;color:#e47d22}
.section-title p{margin:5px 0 0;color:var(--muted);font-size:12px}

/* Inline row editing */
.inline-select{appearance:none;-webkit-appearance:none;border:1px solid transparent;cursor:pointer;padding:6px 24px 6px 9px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 11px) 50%,calc(100% - 7px) 50%;background-size:4px 4px;background-repeat:no-repeat;font-family:inherit}
.inline-select:hover{border-color:currentColor}
.inline-select option{background:#fff;color:var(--ink);font-weight:500}
.inline-progress{display:flex;align-items:center;gap:6px;min-width:150px}
.inline-progress .progress-track{flex:1;min-width:60px}
.inline-num{width:52px;border:1px solid #e7e5ec;border-radius:7px;padding:5px 6px;text-align:right;font-size:12px;background:#fff}
.inline-progress span:last-child{color:#898692;font-size:11px}
.row-edit{text-align:right;width:1%}
.row-buttons{display:flex;gap:6px;justify-content:flex-end}
.small-btn.icon-only{width:32px;height:32px;padding:0;flex-shrink:0}
.small-btn.icon-only .ic{width:15px;height:15px}
.small-btn.danger{color:#9a5552}
.small-btn.danger:hover{color:#b63e39;border-color:#ffd6d3;background:#fff0ef}

/* Business line pages (Website / Mobile App) */
.nav-section{padding-top:18px}
/* Sidebar: the menu scrolls on short screens; the profile card stays pinned at the bottom. */
.sidebar nav{flex:1 1 auto;min-height:0;overflow-y:auto;align-content:start;margin-right:-8px;padding-right:8px;scrollbar-width:thin;scrollbar-color:#4a414f transparent}
.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:#4a414f;border-radius:99px}
.sidebar-bottom{flex-shrink:0}
@media(max-height:780px){.sidebar{padding-top:18px}.brand{padding-bottom:16px}.nav-item{padding:9px 12px}.nav-section{padding-top:10px}.sidebar-bottom{padding-top:10px}}.stats-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.stats-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Line items editor */
.item-head,.item-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 104px 96px 34px;gap:8px;align-items:center}
.item-head span{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#898692}
.item-head span:nth-child(4){text-align:right}
.item-row{margin-top:6px}
.item-amt{text-align:right;font-weight:700;font-size:12px}
.item-row .icon-btn{width:32px;height:32px}
.item-add{justify-self:start;padding:2px 0}
.items-foot{display:grid;grid-template-columns:130px 210px 1fr;gap:12px;align-items:end;margin-top:6px;padding-top:12px;border-top:1px dashed #e7e5ec}
.items-totals div{display:flex;justify-content:space-between;gap:16px;font-size:12px;padding:2px 0}
.items-totals .grand{font-size:14px;border-top:1px solid #e7e5ec;margin-top:4px;padding-top:6px}
@media(max-width:760px){.item-head{display:none}.item-row{grid-template-columns:1fr 1fr 34px;padding:8px;border:1px solid #efedf2;border-radius:10px}.item-row [name=it_desc]{grid-column:1/-1}.item-amt{grid-column:1/-1;text-align:left}.item-row .icon-btn{grid-row:2;grid-column:3}.items-foot{grid-template-columns:1fr}}
.task-row .small-btn[data-pdf]{margin-left:6px;flex-shrink:0}

/* Checkbox groups */
.check-field{border:0;padding:0;margin:0}
.check-field legend{font-size:11px;font-weight:700;color:#5d5865;padding:0;margin-bottom:7px}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.check-option{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e7e5ec;border-radius:9px;background:#fff;cursor:pointer;font-size:13px;color:#302c35;transition:border-color .15s,background .15s}
.check-option:hover{border-color:#f6c27a}
.field .check-option input{width:16px;height:16px;padding:0;margin:0;flex-shrink:0;accent-color:#ff8b28;cursor:pointer}
.check-option:has(input:checked){border-color:#f6a63c;background:#fff6ea;font-weight:600}
.check-option:has(input:focus-visible){box-shadow:0 0 0 3px #ffb73b40}
.add-service{display:flex;gap:8px;margin-top:8px}
.add-service input{flex:1}

/* Content plan */
.plan-toolbar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.plan-toolbar .field{width:min(280px,100%)}
.plan-toolbar .hint{margin:0 0 12px auto}
.plan-table{white-space:normal;table-layout:fixed;min-width:1060px}
.plan-table th.sno,.plan-table td.sno{width:56px;text-align:center;color:#898692;font-weight:700}
.plan-table .col-hook{width:22%}.plan-table .col-description{width:28%}.plan-table .col-cta{width:15%}.plan-table .col-caption{width:35%}
.plan-table th.row-actions,.plan-table td.row-actions{width:48px}
.plan-table td{padding:6px;vertical-align:top}
.plan-table td.sno{padding-top:16px}
.cell-input{width:100%;min-height:52px;resize:vertical;border:1px solid transparent;border-radius:8px;padding:8px 9px;background:transparent;color:var(--ink);line-height:1.45}
/* Text cells grow with their content instead of showing a tiny scrollbar (supported browsers). */
textarea.cell-input{field-sizing:content;overflow:hidden;max-height:none}
.cell-date{min-height:38px;padding:7px 6px;font-size:12px;border-color:#ecebf0;background:#fff;cursor:pointer}
.cell-input:hover{border-color:#ecebf0;background:#fcfcfd}
.cell-input:focus{background:#fff}
.plan-table .icon-btn{width:30px;height:30px;font-size:15px;margin-top:6px;color:#9a96a3}
.plan-table .icon-btn:hover{color:#b63e39;border-color:#ffd6d3}
.plan-add{margin-top:14px}
/* Reel sheets: one blank writing area per reel */
.reel-sheets{display:grid;gap:14px}
.reel-sheet{border:1px solid #ecebf0;border-radius:14px;background:#fff;box-shadow:0 2px 0 #f3f2f6;overflow:hidden}
.reel-head{display:flex;align-items:center;gap:14px;padding:10px 12px 10px 16px;background:#faf9fb;border-bottom:1px solid #ecebf0}
.reel-head b{font:800 14px Manrope,sans-serif;margin-right:auto}
.reel-date{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:#5d5865}
.reel-date .cell-date{width:150px}
.reel-head .icon-btn{width:30px;height:30px;font-size:15px;color:#9a96a3}
.reel-head .icon-btn:hover{color:#b63e39;border-color:#ffd6d3}
.sheet-input{display:block;min-height:260px;padding:16px 18px;border:0;border-radius:0;resize:vertical;font-size:13px;line-height:1.65;background:#fff}
.sheet-input:hover{background:#fff}
.sheet-input:focus{box-shadow:inset 0 0 0 2px #ffb73b55;border:0}
.paste-hint{display:flex;align-items:center;gap:6px;margin:-6px 0 10px;color:#898692;font-size:11px}
.paste-hint .ic{width:13px;height:13px}
.plan-actions{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.plan-actions .hint{margin:0 4px 0 0}
.plan-toolbar .plan-actions .hint{margin:0 4px 0 0}
/* Version history */
.modal-wide{width:min(1000px,100%)}
.version{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.version-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.version-head b{font-size:13px;margin-right:4px}
.version-head small{display:block;color:#898692;font-size:11px;margin-top:4px}
.version-preview{margin-top:12px;border-top:1px dashed #e7e5ec;padding-top:4px}
.preview-section h3{font:800 12px Manrope,sans-serif;margin:12px 0 6px}
.preview-section h3 span{font:700 10px 'DM Sans',sans-serif;background:#fff0dc;color:#b76517;border-radius:99px;padding:2px 7px;margin-left:4px}
.preview-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
.preview-table th{text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:#898692;padding:6px;border-bottom:1px solid var(--line)}
.preview-table td{padding:6px;border-bottom:1px solid #f1f0f4;vertical-align:top;white-space:pre-wrap;word-break:break-word}
.preview-table .n{width:40px;text-align:center}
.plan-tabs{display:flex;gap:6px;margin:-4px 0 14px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.plan-tab{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;color:#5d5865;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:700;white-space:nowrap}
.plan-tab:hover{border-color:#f6c27a;color:var(--ink)}
.plan-tab.active{background:linear-gradient(100deg,#ff8b28,#ffbd39);border-color:transparent;color:#251b16;box-shadow:0 5px 13px #ffad3830}
.tab-count{font-size:10px;font-weight:700;padding:2px 7px;border-radius:99px;background:#f3f3f6;color:#77737e}
.plan-tab.active .tab-count{background:#ffffff8c;color:#5b3a12}
.maint-line{margin-top:10px!important}

/* Login */
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.login-brand{background:radial-gradient(circle at 85% 10%,#ff8b2833,transparent 45%),radial-gradient(circle at 10% 95%,#ffd34e22,transparent 40%),#1c1820;color:#fff;padding:40px 48px;display:flex;flex-direction:column}
.login-brand .brand{padding:0}
.login-pitch{margin:auto 0;max-width:460px}
.login-pitch h1{font:800 clamp(30px,3.4vw,44px)/1.1 Manrope,sans-serif;letter-spacing:-1.5px;margin:0 0 16px}
.login-pitch h1 span{background:linear-gradient(100deg,#ff8b28,#ffd34e);-webkit-background-clip:text;background-clip:text;color:transparent}
.login-pitch>p:not(.eyebrow){color:#bdb7c4;line-height:1.7;margin:0}
.login-points{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:12px}
.login-points li{display:flex;gap:10px;align-items:center;color:#e3dee7;font-size:13px}
.login-points li::before{content:'✓';width:24px;height:24px;border-radius:8px;background:#ff8b2826;color:#ffb340;display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}
.login-legal{color:#8c8492;font-size:11px}
.login-panel{display:grid;place-items:center;padding:40px 24px}
.login-card{width:min(400px,100%);display:grid;gap:18px}
.login-card h2{font:800 26px Manrope,sans-serif;letter-spacing:-.8px;margin:0}
.login-card .subhead{margin:6px 0 0}
.login-card .field input{padding:12px 13px;font-size:14px}
.field input[aria-invalid=true]{border-color:var(--red)}
.field-error{color:#b63e39;font-size:11px}
.caps-hint{color:#b76517;font-size:11px}
.password-wrap{position:relative}
.password-wrap input,.login-card .password-wrap input{padding-right:46px}
.reveal-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border:0;background:transparent;color:#8a8793;border-radius:8px}
.reveal-btn:hover{background:#f1f1f5;color:var(--ink)}
.reveal-btn .ic{width:18px;height:18px}

/* Icons */
.ic{width:16px;height:16px;flex-shrink:0;vertical-align:middle}
.nav-item .ic{width:18px;height:18px}
.stat-icon .ic{width:17px;height:17px}
.empty-icon{color:#b5b1bd}.empty-icon .ic{width:30px;height:30px;stroke-width:1.6}
.primary-btn,.secondary-btn,.danger-btn,.small-btn,.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.small-btn .ic{width:13px;height:13px}
.text-btn .ic{width:14px;height:14px}
.menu-btn{color:var(--ink)}.menu-btn .ic{width:22px;height:22px}
.top-search-icon{display:grid;place-items:center}.top-search-icon .ic{width:17px;height:17px}
.user-chev{display:grid;place-items:center}
.security-note .ic,.hint .ic{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
.panel-head h2 .ic{width:17px;height:17px;vertical-align:-3px;margin-right:4px;color:#e47d22}
.plan-tab .ic{width:15px;height:15px}
.contact-line{display:flex;align-items:center;gap:7px}.contact-line .ic{width:14px;height:14px;color:#a6a2ae}
.client-card .contact-line+.contact-line{margin-top:8px}
.maint-line{display:flex;align-items:center;gap:7px}.maint-line>.ic{width:14px;height:14px;color:#a6a2ae}
.data-table a{display:inline-flex;align-items:center;gap:4px;color:#c46b1c;text-decoration:none;font-weight:600}.data-table a .ic{width:12px;height:12px}
.login-submit{width:100%;padding:13px 15px;font-size:13px}
.login-alert{border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.55}
.login-alert.error{background:#fff0ef;color:#b63e39;border:1px solid #ffd6d3}
.login-alert.info{background:#e5f7ef;color:#167b5d;border:1px solid #c4ecdb}
.login-help{color:var(--muted);font-size:12px;margin:0;text-align:center}

@media(max-width:1100px){.profile-grid{grid-template-columns:1fr}}
@media(max-width:860px){.login-shell{grid-template-columns:1fr}.login-brand{padding:24px 20px}.login-pitch{margin:28px 0 0}.login-pitch h1{font-size:28px}.login-points,.login-legal{display:none}.login-panel{place-items:start center;padding:32px 16px}}
@media(max-width:760px){.top-search kbd{display:none}.top-search{height:40px}.access-card{padding:12px}}
