:root{--ink:#172126;--muted:#66747c;--line:#dce3e6;--soft:#f6f8f9;--teal:#006b70;--teal-dark:#00565b;--focus:#0b7e84;--radius:8px;font-family:Inter,system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:#fff;font-size:13px}button,input,select{font:inherit;color:inherit}button{background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 11px;cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8bd5d8;outline-offset:1px}.boot,.fatal{display:grid;place-items:center;height:100vh;color:var(--muted)}.shell{display:grid;grid-template-columns:212px 1fr;height:100vh;overflow:hidden}.shell>aside{border-right:1px solid var(--line);display:flex;flex-direction:column;padding:14px 10px}.brand{height:46px;display:flex;align-items:center;gap:10px;padding:0 8px;font-size:16px}.mark{width:28px;height:28px;display:grid;place-items:center;background:linear-gradient(145deg,#178c90,#004e53);color:#fff;font-weight:700;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}nav{display:flex;flex-direction:column;gap:4px;margin-top:10px}.nav-item{border:0;display:flex;gap:11px;align-items:center;text-align:left;padding:9px 10px;background:transparent}.nav-item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.nav-item.active{background:#eaf3f3;color:#005d62;box-shadow:inset 3px 0 var(--teal)}nav hr{width:100%;border:0;border-top:1px solid var(--line);margin:6px 0}.workspace-switch{margin-top:auto;border:1px solid var(--line);border-radius:6px;padding:8px;display:flex;align-items:center;gap:8px}.workspace-switch div{display:flex;flex-direction:column}.workspace-switch small{color:var(--muted)}.avatar{width:28px;height:28px;display:inline-grid;place-items:center;background:#d7eceb;border-radius:50%;color:#005b60;font-weight:600}.stage{min-width:0;display:flex;flex-direction:column}.stage>header{height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:15px}.chev{margin-left:8px}.header-actions{display:flex;align-items:center;gap:8px}.search{height:34px;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;padding:0 10px;color:var(--muted)}.search input{border:0;outline:0;width:210px;margin-left:6px}.icon-btn{border-radius:50%;width:34px;padding:0;height:34px}.user-menu{border:0;display:flex;gap:8px;align-items:center}.tabs{height:47px;border-bottom:1px solid var(--line);padding:0 18px;display:flex;gap:24px}.tabs button{border:0;border-radius:0;padding:0 4px;background:transparent}.tabs button.active{color:var(--teal);border-bottom:2px solid var(--teal);font-weight:600}.toolbar{height:54px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:7px;padding:0 14px}.toolbar button{border-color:transparent}.toolbar .table-name{border-color:var(--line);margin-right:4px}.toolbar .divider{height:28px;border-left:1px solid var(--line)}.primary{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:600}.primary:hover{background:var(--teal-dark)}.toolbar .primary{margin-left:auto}.work-area{display:flex;min-height:0;flex:1}.grid-wrap{overflow:auto;flex:1}table{border-collapse:collapse;min-width:1050px;width:100%;font-size:12px}th,td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);height:44px;padding:7px 10px;text-align:left;white-space:nowrap}th{height:38px;background:#fafbfb;font-weight:500;position:sticky;top:0;z-index:1}.rownum{width:44px;text-align:center;color:var(--muted)}tr:hover td,tr.selected td{background:#f1f8f8}.field-type{color:var(--muted);margin-right:7px}.addfield{width:42px;text-align:center}.status{padding:4px 7px;border-radius:5px;background:#dcefe5;color:#1d6944}.status.vacant{background:#e4edfb;color:#2d5e9c}.status.under-maintenance{background:#f8ebd3;color:#835b18}.pager{display:flex;justify-content:space-between;align-items:center;height:60px;padding:0 18px;color:var(--muted)}.pager b{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:5px;color:var(--ink);margin:0 10px}.drawer{width:360px;flex:0 0 360px;border-left:1px solid var(--line);overflow:auto;background:#fff}.drawer-head{padding:18px;display:flex;justify-content:space-between}.drawer-head h2{font-size:16px;margin:0 0 4px}.drawer-head small{color:var(--muted)}.drawer-head button{border:0;font-size:22px}.drawer-tabs,.subtabs{display:flex;border-bottom:1px solid var(--line);padding:0 18px;gap:20px}.drawer-tabs button,.subtabs button{border:0;border-radius:0;padding:10px 1px}.drawer-tabs .active,.subtabs .active{border-bottom:2px solid var(--teal);color:var(--teal);font-weight:600}.drawer form{padding:16px}.drawer label,.modal label,.login-card label{display:grid;gap:6px;margin-bottom:14px;font-weight:500}.drawer input,.drawer select,.modal input,.modal select,.login-card input{width:100%;border:1px solid #cdd6da;border-radius:6px;padding:10px;background:#fff}.drawer form button{width:100%}.activity{border-top:1px solid var(--line);padding:16px}.activity h3{font-size:13px}.activity p{display:flex;gap:8px;align-items:center;color:var(--muted)}.page{padding:28px;overflow:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.page-head h1{margin:0 0 7px;font-size:24px}.page-head p{margin:0;color:var(--muted)}.people-list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:16px}.people-row{display:grid;grid-template-columns:minmax(260px,2fr) 1fr 1fr 1.4fr;align-items:center;min-height:58px;border-bottom:1px solid var(--line);padding:0 16px}.people-row:last-child{border-bottom:0}.people-row.head{min-height:38px;background:var(--soft);font-size:11px;color:var(--muted);text-transform:uppercase}.people-row>span:first-child{display:flex;gap:10px;align-items:center}.people-row small{display:block;color:var(--muted);margin-top:3px}.role{padding:4px 7px;border-radius:5px;background:#e7eeee;text-transform:capitalize;font-size:11px}.role.owner{background:#eee7fa;color:#62439a}.role.admin{background:#e1eafd;color:#315e9a}.roles-help{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.roles-help h2{font-size:16px}.roles-help>div{display:grid;grid-template-columns:repeat(3,1fr);gap:0 20px}.roles-help p{display:flex;flex-direction:column}.roles-help span{color:var(--muted);margin-top:4px}.audit-head{grid-template-columns:160px 1fr 1.5fr 1fr}.empty,.empty-row{padding:64px;text-align:center;color:var(--muted)}.empty h2{color:var(--ink)}.modal-back{position:fixed;inset:0;background:#17212666;display:grid;place-items:center;z-index:10;padding:20px}.modal{width:min(440px,100%);background:#fff;border-radius:var(--radius);padding:24px;box-shadow:0 24px 70px #0d202444;position:relative}.modal h2{margin:0 0 8px}.modal>p{color:var(--muted);margin-bottom:22px}.modal-x{position:absolute;right:16px;top:14px;border:0;font-size:22px}.modal>.primary{width:100%;margin-top:8px}.login{display:grid;grid-template-columns:55% 45%;min-height:100vh;background:#fff}.login-art{position:relative;overflow:hidden;background:linear-gradient(145deg,#f9fcfc,#edf7f7)}.art-grid{position:absolute;inset:-10%;background-image:linear-gradient(#acd1d155 1px,transparent 1px),linear-gradient(90deg,#acd1d155 1px,transparent 1px);background-size:42px 42px;transform:rotate(-12deg);mask-image:linear-gradient(135deg,#000,transparent 80%)}.art-grid:before,.art-grid:after{content:"";position:absolute;border:1px solid #b7d5d5;background:#ffffffb5;box-shadow:0 18px 40px #497f8320}.art-grid:before{width:420px;height:230px;left:12%;top:20%;transform:rotate(6deg)}.art-grid:after{width:500px;height:280px;left:35%;top:54%;transform:rotate(-5deg)}.login-panel{display:grid;place-items:center;position:relative;padding:40px}.login-card{width:min(480px,100%);border:1px solid #d3dcdf;border-radius:8px;padding:58px 60px}.login-card .brand{padding:0;margin-bottom:46px}.login-card h1{font-size:34px;letter-spacing:-.03em;margin:0 0 12px}.login-card>p{font-size:15px;color:var(--muted);line-height:1.5;margin-bottom:34px}.login-card input{font-size:15px;padding:15px}.login-card form button{width:100%;background:var(--teal);color:#fff;border-color:var(--teal);padding:14px;margin-top:4px;font-size:15px;font-weight:600}.login-card form small,.login-card form>a{display:block;text-align:center;color:var(--muted);margin-top:18px}.login-help{margin-top:54px;color:var(--muted)}.login-help span{color:var(--teal)}.notice{padding:10px;background:#edf7f7;border:1px solid #c9e3e2;border-radius:6px;margin:-18px 0 18px;line-height:1.4}.code{text-align:center;letter-spacing:.6em;font-size:22px!important}.login-panel footer{position:absolute;bottom:24px;right:40px;color:var(--muted)}.login-panel footer i{border-left:1px solid #9aa6aa;margin:0 18px}
@media(max-width:900px){.shell{grid-template-columns:66px 1fr}.shell>aside .brand strong,.nav-item span,.workspace-switch div{display:none}.shell>aside .brand{justify-content:center}.nav-item{justify-content:center}.workspace-switch{justify-content:center}.drawer{position:absolute;right:0;top:157px;bottom:0;box-shadow:-12px 0 30px #14242818}.search input{width:120px}.login{grid-template-columns:1fr}.login-art{display:none}.login-panel{min-height:100vh}.roles-help>div{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.header-actions .user-menu span:last-child,.icon-btn{display:none}.search input{width:90px}.toolbar button:not(.table-name):not(.primary){display:none}.drawer{width:calc(100vw - 66px);top:157px}.page{padding:18px}.people-row{grid-template-columns:1fr 100px}.people-row>span:nth-child(3),.people-row>span:nth-child(4){display:none}.login-panel{padding:18px}.login-card{padding:36px 26px;border:0}.login-panel footer{right:auto}.login-card h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.bases-page{padding:28px 32px;overflow:auto}.bases-page .page-head{margin-bottom:24px}.base-list{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.base-row{width:100%;display:grid;grid-template-columns:minmax(330px,2.5fr) .55fr .65fr .9fr .8fr 30px;gap:18px;align-items:center;min-height:78px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;text-align:left;background:#fff}.base-row:last-child{border-bottom:0}.base-row:not(.base-head):hover{background:#f8fbfb}.base-head{min-height:40px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;pointer-events:none}.base-title{display:flex;align-items:center;gap:14px}.base-title>span{display:flex;flex-direction:column;gap:5px}.base-title small{color:var(--muted);font-size:11px}.base-icon{width:38px;height:38px;border:1px solid #cfe4e3;border-radius:7px;display:grid;place-items:center;color:#08777c;background:#eff8f7}.base-icon svg,.template-option svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.tone-1{color:#35845b;background:#eff8f1}.tone-2{color:#3d64bf;background:#f0f3fc}.tone-3{color:#7b55c0;background:#f4f0fb}.avatar-stack{display:flex}.avatar-stack i{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#d9eceb;border:2px solid white;margin-left:-6px;font-style:normal;font-size:10px}.base-layout{display:grid;grid-template-columns:180px minmax(0,1fr);flex:1;min-height:0}.table-rail{border-right:1px solid var(--line);padding:10px 8px;background:#fbfcfc;overflow:auto}.rail-title{height:42px;padding:0 8px;display:flex;justify-content:space-between;align-items:center}.rail-title button{border:0;background:transparent}.table-link{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;padding:9px;border-radius:6px}.table-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.table-link.active{background:#e7f1f1;color:#00656a;font-weight:600}.table-link.add{margin-top:5px}.data-stage{display:flex;flex-direction:column;min-width:0}.data-title{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 14px;border-bottom:1px solid var(--line)}.data-title h1{font-size:18px;margin:0}.data-title .primary{padding:8px 13px}.data-stage .toolbar{height:42px}.addfield button{border:0;background:transparent;padding:5px;font-size:18px}.record-drawer{width:385px;flex-basis:385px}.record-form{padding:16px}.record-form label{display:grid;grid-template-columns:1fr auto;gap:5px;margin-bottom:14px;font-weight:600}.record-form label>small{color:var(--muted);font-size:9px;font-weight:400;text-transform:uppercase;align-self:end}.record-form input,.record-form select,.record-form textarea{grid-column:1/-1;width:100%;border:1px solid #cdd6da;border-radius:6px;padding:9px;background:#fff}.record-form textarea{min-height:80px;resize:vertical}.record-form input[type=checkbox]{width:18px}.record-form>.primary{width:100%}.drawer-tabs button{font-size:11px}.drawer-tabs b{font-size:9px;background:#e3eeee;padding:2px 5px;border-radius:9px}.drawer-loading,.drawer-empty{padding:36px 20px;text-align:center;color:var(--muted)}.comments-pane{padding:16px}.comment-box{border:1px solid #cfd8db;border-radius:7px;padding:10px}.comment-box textarea{width:100%;min-height:68px;border:0;resize:vertical;outline:0}.comment-box>div{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px}.comment-box button{padding:7px 15px}.comment-feed{margin-top:18px}.comment-item{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #edf0f1}.comment-item header,.comment-reply header{display:flex;justify-content:space-between;gap:10px}.comment-item time,.comment-reply time{color:var(--muted);font-size:9px}.comment-item p,.comment-reply p{line-height:1.5;margin:6px 0;white-space:pre-wrap}.reply-btn{border:0;padding:3px 0;color:var(--teal);font-weight:600;background:transparent}.comment-reply{display:grid;grid-template-columns:26px 1fr;gap:8px;border-left:1px solid #ccd8da;padding:12px 0 0 12px;margin-top:8px}.comment-reply .avatar{width:24px;height:24px}.recent-activity{margin-top:24px;border-top:1px solid var(--line);padding-top:14px}.recent-activity>div{display:flex;justify-content:space-between}.recent-activity h3,.activity-pane h3{font-size:13px;margin:0 0 12px}.recent-activity>div button{border:0;color:var(--teal);padding:0}.activity-pane{padding:18px}.activity-event{display:flex;gap:10px;padding:10px 0}.activity-event i{width:26px;height:26px;display:grid;place-items:center;background:#f0f4f5;border-radius:6px;color:var(--muted);font-style:normal}.activity-event div{display:flex;flex-direction:column;gap:4px}.activity-event strong{font-size:11px}.activity-event time{font-size:9px;color:var(--muted)}.modal form>p{color:var(--muted);line-height:1.5}.modal textarea{width:100%;border:1px solid #cdd6da;border-radius:6px;padding:10px;min-height:64px;resize:vertical}.modal fieldset{border:0;padding:0;margin:18px 0}.modal legend{font-weight:600;margin-bottom:8px}.modal footer{display:flex;justify-content:flex-end;gap:8px;margin:22px -24px -24px;padding:16px 24px;border-top:1px solid var(--line)}.base-modal{width:min(500px,100%);max-height:calc(100vh - 40px);overflow:auto}.template-option{display:grid!important;grid-template-columns:18px 25px 1fr;align-items:center;border:1px solid var(--line);border-radius:7px;padding:10px!important;margin:7px 0!important}.template-option:has(input:checked){border-color:var(--teal);background:#f1f8f8}.template-option>span:last-child{display:flex;flex-direction:column;gap:3px}.template-option small{color:var(--muted);font-weight:400}.field-modal{width:min(480px,100%);max-height:calc(100vh - 30px);overflow:auto}.type-search{display:flex;border:1px solid #cdd6da;border-radius:6px;padding:0 9px;align-items:center;color:var(--muted)}.type-search input{border:0!important;outline:0}.field-types{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:7px;padding:6px;max-height:265px;overflow:auto}.field-types label{display:grid!important;grid-template-columns:16px 28px 1fr;align-items:center;gap:3px!important;margin:0!important;padding:7px;border-radius:5px;font-size:11px}.field-types label:has(input:checked){background:#e7f2f2;color:#005f64}.field-types label:hover{background:#f3f6f6}.field-types input{width:auto!important}.field-types label>span{color:var(--muted);font-size:10px}#fieldConfig{margin-top:14px}#fieldConfig small{color:var(--muted);font-weight:400}.modal label small{color:var(--muted);font-weight:400}.fatal{color:#9b2e2e}
@media(max-width:1050px){.base-row{grid-template-columns:minmax(250px,2fr) .5fr .6fr .8fr 30px}.base-row>span:nth-child(5){display:none}.record-drawer{position:absolute;right:0;top:100px;bottom:0;z-index:3;box-shadow:-12px 0 30px #14242818}.base-layout{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:700px){.bases-page{padding:20px 14px}.base-row{grid-template-columns:1fr 48px 20px}.base-row>span:nth-child(3),.base-row>span:nth-child(4),.base-row>span:nth-child(5){display:none}.base-layout{grid-template-columns:52px minmax(0,1fr)}.rail-title strong,.table-link span{display:none}.table-link{justify-content:center}.record-drawer{width:calc(100vw - 66px)}.field-types{grid-template-columns:1fr}.data-title h1{font-size:15px}.page-head{gap:12px}}

/* Deliberate product typography scale */
:root{--text-xs:11px;--text-sm:12px;--text-base:14px;--text-md:15px;--text-lg:18px;--text-xl:26px}
body{font-size:var(--text-base);line-height:1.45;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit;color:inherit}
button{font-size:var(--text-sm);font-weight:500;line-height:1.35}
.brand{font-size:var(--text-md);font-weight:600;letter-spacing:-.01em}
.nav-item{font-size:13px;font-weight:500}
.workspace-switch small{font-size:var(--text-xs);line-height:1.25}
.workspace-switch strong{font-size:var(--text-sm);font-weight:600;line-height:1.35}
.stage>header{font-size:var(--text-sm);font-weight:500}
table{font-size:var(--text-sm);line-height:1.4}
th{font-size:var(--text-xs);font-weight:600;letter-spacing:.02em}
.drawer-head h2{font-size:var(--text-lg);font-weight:600;letter-spacing:-.015em;line-height:1.3}
.drawer-head small{font-size:var(--text-xs)}
.drawer label,.modal label,.login-card label{font-size:var(--text-sm);font-weight:600;line-height:1.35}
.page-head h1{font-size:var(--text-xl);font-weight:650;line-height:1.2;letter-spacing:-.025em}
.page-head p{font-size:13px;line-height:1.5}
.people-row.head,.base-head{font-size:var(--text-xs);font-weight:600;letter-spacing:.055em}
.people-row small,.base-title small{font-size:var(--text-xs);line-height:1.4}
.role{font-size:var(--text-xs);font-weight:500}
.modal h2{font-size:20px;font-weight:650;letter-spacing:-.02em;line-height:1.3}
.modal>p,.modal form>p{font-size:13px;line-height:1.5}
.data-title h1{font-size:var(--text-lg);font-weight:650;letter-spacing:-.015em;line-height:1.3}
.record-form label{font-size:var(--text-sm)}
.record-form label>small{font-size:var(--text-xs);font-weight:500;letter-spacing:.035em}
.drawer-tabs button{font-size:var(--text-sm);font-weight:500}
.drawer-tabs b,.comment-box>div,.comment-item time,.comment-reply time{font-size:var(--text-xs)}
.recent-activity h3,.activity-pane h3{font-size:13px;font-weight:600}
.activity-event strong{font-size:var(--text-sm);font-weight:600}
.activity-event time{font-size:var(--text-xs)}
.field-types label{font-size:var(--text-sm)}
.field-types label>span{font-size:var(--text-xs)}
@media(max-width:700px){.page-head h1{font-size:22px}.data-title h1{font-size:16px}}

/* Airtable-inspired data-grid interactions */
.data-actions{display:flex;align-items:center;gap:12px}.autosave-note{color:var(--muted);font-size:var(--text-xs)}
.field-header{width:100%;height:100%;display:flex;align-items:center;gap:7px;border:0;border-radius:0;background:transparent;padding:0;text-align:left;font-size:var(--text-xs);font-weight:600}.field-header>span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.field-header i{margin-left:auto;color:#89959a;font-style:normal;opacity:0}.field-header:hover{color:var(--teal)}.field-header:hover i,.field-header:focus-visible i{opacity:1}
.grid-cell{position:relative;min-width:150px;max-width:300px;overflow:hidden;text-overflow:ellipsis}.grid-cell.is-editable{cursor:cell}.grid-cell.is-editable:hover{box-shadow:inset 0 0 0 1px #8bc8ca;background:#f8fcfc}.grid-cell.editing{padding:0;background:#fff;overflow:visible;box-shadow:inset 0 0 0 2px var(--focus);z-index:2}.grid-cell.saving{opacity:.7}.grid-cell.saved{animation:cellSaved .9s ease}.inline-control{width:100%;height:43px;border:0;outline:0;padding:7px 10px;background:#fff;font-size:var(--text-sm)}.inline-check{width:18px;height:18px;margin:12px}.cell-empty{color:#a0aaae}.grid-check{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #bac5c9;border-radius:4px;color:#fff;font-size:12px}.grid-check.checked{background:var(--teal);border-color:var(--teal)}
.status{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:var(--text-xs);font-weight:500;line-height:1.2;white-space:nowrap}.option-gray{background:#e9edef;color:#46545a}.option-blue{background:#dfeafd;color:#2b5796}.option-cyan{background:#d9f0f5;color:#16687a}.option-teal{background:#dcefed;color:#17655f}.option-green{background:#dff0e3;color:#28633b}.option-yellow{background:#f7edc8;color:#735d12}.option-orange{background:#f8e4cf;color:#804b16}.option-red{background:#f7dddd;color:#8a3434}.option-pink{background:#f6e0eb;color:#823b61}.option-purple{background:#ebe2f7;color:#63438b}
.option-config{margin-top:16px}.option-config-head{display:flex;flex-direction:column;gap:3px;margin-bottom:9px}.option-config-head strong{font-size:var(--text-sm);font-weight:600}.option-config-head small{color:var(--muted);font-size:var(--text-xs)}.option-editor{display:flex;flex-direction:column;gap:7px}.option-row{display:grid;grid-template-columns:18px minmax(0,1fr) 105px 30px;gap:7px;align-items:center}.option-row input,.option-row select{width:100%;margin:0;padding:8px}.option-dot{width:12px;height:12px;border-radius:50%;justify-self:center}.option-row .remove-option{border:0;padding:5px;font-size:18px;color:var(--muted)}.add-option{margin-top:8px;border:0;padding-left:0;color:var(--teal);background:transparent;font-weight:600}
@keyframes cellSaved{0%,100%{background:transparent}35%{background:#dff3ec}}
@media(max-width:700px){.autosave-note{display:none}.grid-cell{min-width:135px}}

/* Restrained enterprise navigation */
.nav-item.active{background:#edf3f2;color:#174f52;font-weight:600;box-shadow:none}

/* Airtable-inspired grid density and record expansion */
.density-control{margin-left:auto;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}
.density-control select{height:30px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:0 24px 0 8px;font-size:12px}
table.density-small th{height:32px;padding-top:4px;padding-bottom:4px}
table.density-small td{height:32px;padding-top:3px;padding-bottom:3px}
table.density-medium th{height:38px}
table.density-medium td{height:44px}
table.density-large th{height:42px}
table.density-large td{height:64px}
.rownum{position:relative}.record-open{display:none;position:absolute;inset:0;margin:auto;width:24px;height:24px;padding:0;border:0;border-radius:4px;background:#fff;color:var(--teal);font-size:14px;line-height:24px}
tr:hover .record-open,.record-open:focus-visible{display:block}.record-open:hover{background:#e8f3f2}.row-number{display:inline}
tr:hover .row-number:has(+.record-open),.rownum:focus-within .row-number{visibility:hidden}
@media(max-width:700px){.density-control>span{display:none}.density-control{margin-left:0}.record-open{display:block;position:static}.row-number{display:none}}

/* Working table controls, persistent views and richer colour controls */
button,.table-link,.workspace-switch,.search,.modal input,.modal select,.modal textarea,.record-form input,.record-form select,.record-form textarea{border-radius:9px}
.primary{border-radius:9px}.toolbar-wrap{position:relative;z-index:4}.data-stage .toolbar{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;white-space:nowrap}.data-stage .toolbar::-webkit-scrollbar{display:none}
.tool-button{height:30px;padding:5px 9px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent}.tool-button:hover,.tool-button.active{background:#f0f4f4;border-color:#d9e2e3!important}.tool-button.configured{background:#e6f2f1;color:#075f63}.tool-button b{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:9px;background:#087b80;color:#fff;font-size:10px;margin-left:3px}
.tool-popover{position:absolute;top:42px;left:12px;width:min(360px,calc(100vw - 100px));max-height:460px;overflow:auto;background:#fff;border:1px solid #ccd7da;border-radius:12px;box-shadow:0 18px 50px #17323826;padding:12px;z-index:20}.popover-head{display:flex;justify-content:space-between;align-items:center;padding:2px 2px 10px}.popover-head strong{font-size:13px}.popover-head button{border:0;padding:2px 7px;font-size:18px;background:transparent}.view-list{display:flex;flex-direction:column;gap:3px}.view-list>button{display:grid;grid-template-columns:18px 1fr 18px;align-items:center;text-align:left;border:0;padding:9px;background:transparent}.view-list>button.active{background:#e9f3f2;color:#075f63}.compact-form{display:grid;grid-template-columns:1fr auto;gap:7px;border-top:1px solid var(--line);margin-top:9px;padding-top:10px}.compact-form input,.popover-form input,.popover-form select{width:100%;height:36px;border:1px solid #cbd6d9;border-radius:8px;padding:7px 9px;background:#fff}.popover-form{display:grid;gap:10px}.popover-form label{display:grid;gap:5px;font-size:11px;font-weight:600}.popover-form footer,.fields-form footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;margin-top:3px}.or-divider{font-size:10px;color:var(--muted);text-align:center;position:relative}.colour-input{display:grid;grid-template-columns:42px 1fr 36px;gap:6px}.colour-input input[type=color]{padding:3px}.eyedropper,.option-eyedropper{padding:6px;border:1px solid var(--line)}.fields-form{display:grid;gap:3px}.fields-form>label{display:flex;align-items:center;gap:9px;padding:7px 5px;border-radius:7px}.fields-form>label:hover{background:#f4f7f7}.fields-form input{accent-color:var(--teal)}
.grid-wrap table{table-layout:fixed;width:max-content;min-width:100%}.grid-wrap th[data-field-column]{position:sticky}.grid-cell{min-width:0;max-width:none}.column-resizer{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:3}.column-resizer:hover,.resizing-column .column-resizer{border-right:2px solid #0d8d92}.resizing-column{cursor:col-resize;user-select:none}.infinite-status{height:48px;display:grid;place-items:center;color:var(--muted);font-size:11px}.group-row td{height:34px!important;background:#f2f5f6!important;color:#435157;font-size:11px;font-weight:600}.group-row td span{margin-left:8px;background:#dde5e7;border-radius:999px;padding:2px 6px;font-weight:500}.grid-row.is-coloured td{background:var(--row-tint)}.grid-row.is-coloured:hover td,.grid-row.is-coloured.selected td{box-shadow:inset 0 0 0 999px #ffffff2e}
.option-row{grid-template-columns:34px minmax(0,1fr) 92px 32px 30px}.option-swatch{height:34px;padding:2px!important;border:1px solid var(--line);border-radius:8px}.option-hex{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.option-eyedropper{height:34px}.status{box-shadow:inset 0 0 0 1px #ffffff38;font-weight:600}
@media(max-width:700px){.data-stage .toolbar{padding:0 10px}.data-stage .toolbar button.tool-button{display:inline-flex!important;align-items:center}.tool-popover{left:8px;width:min(340px,calc(100vw - 82px))}.density-control{order:-1}.column-resizer{display:none}.option-row{grid-template-columns:32px minmax(0,1fr) 84px 30px}.option-eyedropper{display:none}.option-row .remove-option{grid-column:4}.grid-wrap table{min-width:760px}}
.main-nav .brand{position:relative}
.toolbar-wrap{z-index:30}.tool-popover{z-index:100}.record-page{min-width:0;overflow:auto;background:#f7f9f9}.record-page-head{padding:22px 28px 18px;background:#fff;border-bottom:1px solid var(--line)}.record-back{border:0;background:transparent;padding:5px 0;color:var(--teal);font-weight:600;margin-bottom:18px}.record-page-head>div{max-width:920px}.record-kicker{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.record-page-head h1{font-size:26px;letter-spacing:-.025em;margin:0 0 7px}.record-page-head p{margin:0;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}.record-tabs{height:46px;display:flex;gap:22px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);margin:0}.record-tabs button{border:0;border-radius:0;background:transparent;padding:0 2px}.record-tabs button.active{color:var(--teal);font-weight:600;border-bottom:2px solid var(--teal)}.record-page-body{padding:24px 28px 40px}.record-overview{display:grid;grid-template-columns:minmax(460px,1.55fr) minmax(300px,.8fr);gap:20px;max-width:1180px}.record-fields-card,.record-context>section,.record-focus-panel{background:#fff;border:1px solid var(--line);border-radius:10px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}.section-heading h2{font-size:14px;margin:0 0 4px}.section-heading p{font-size:11px;color:var(--muted);margin:0}.section-heading>button{border:0;color:var(--teal);padding:3px;background:transparent;font-weight:600}.record-page-form{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;padding:20px}.record-page-form label:first-child{grid-column:1/-1}.record-page-form>.primary{grid-column:1/-1;width:auto;justify-self:end;padding-inline:18px}.record-context{display:flex;flex-direction:column;gap:20px}.record-context>section>.comment-item,.record-context>section>.activity-event,.record-context>section>.context-empty{margin-inline:18px}.record-focus-panel{max-width:820px;overflow:hidden}.record-focus-panel .comments-pane,.record-focus-panel .activity-pane{padding:22px}.field-modal footer .footer-spacer{flex:1}.field-modal footer .primary-field-note{align-self:center;color:var(--muted);font-size:10px}.danger{color:#a12d2d;border-color:#e6c5c5}.danger:hover{background:#fff3f3}.danger.ghost{margin-right:auto}
@media(max-width:1000px){.record-overview{grid-template-columns:1fr}.record-context{display:grid;grid-template-columns:1fr 1fr}}
.record-link-cell{cursor:pointer;color:#075f65;font-weight:500}.record-link-cell:hover{text-decoration:underline}
.record-tabs{flex-direction:row}
@media(max-width:700px){.record-page-head{padding:18px 14px 14px}.record-page-head h1{font-size:20px}.record-tabs{padding:0 14px}.record-page-body{padding:14px}.record-page-form{grid-template-columns:1fr}.record-page-form label:first-child,.record-page-form>.primary{grid-column:1}.record-page-form>.primary{width:100%}.record-context{grid-template-columns:1fr}.record-page-head p{overflow:hidden;text-overflow:ellipsis}.tool-popover{max-height:calc(100vh - 190px)}}
.nav-collapse{margin-left:auto;width:28px;height:28px;padding:0;border:0;border-radius:50%;font-size:20px;line-height:1}.main-nav-collapsed{grid-template-columns:66px 1fr}.main-nav-collapsed .main-nav{padding-inline:8px}.main-nav-collapsed .brand{justify-content:center;padding:0}.main-nav-collapsed .brand strong,.main-nav-collapsed .nav-item span,.main-nav-collapsed .workspace-switch div{display:none}.main-nav-collapsed .brand .nav-collapse{position:absolute;left:38px;background:#fff;border:1px solid var(--line);font-size:18px}.main-nav-collapsed .nav-item,.main-nav-collapsed .workspace-switch{justify-content:center}.base-layout.table-rail-collapsed{grid-template-columns:52px minmax(0,1fr)}.table-rail-collapsed .rail-title{padding:0;justify-content:center}.table-rail-collapsed .rail-title strong,.table-rail-collapsed .table-link span{display:none}.table-rail-collapsed .table-link{justify-content:center;padding-inline:0}.entity-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;background:#f6f8f9!important;color:#46545b!important}.column-resizer{inset-inline-start:auto;inset-inline-end:-4px}

/* Stable inline editing and multi-field pinning */
.grid-cell.editing{height:inherit}.inline-control{height:100%;min-height:0}.density-small .inline-control{height:31px}.density-medium .inline-control{height:43px}.density-large .inline-control{height:63px}.density-small .inline-check{margin:6px}.density-medium .inline-check{margin:12px}.density-large .inline-check{margin:22px 12px}
.grid-wrap th.rownum,.grid-wrap td.rownum{position:sticky;left:0;z-index:5;background:#fafbfb}.grid-wrap td.rownum{z-index:3;background:#fff}.grid-wrap .is-pinned{position:sticky;z-index:4;background:#fff;box-shadow:1px 0 #dce3e6}.grid-wrap th.is-pinned{z-index:6;background:#fafbfb}.grid-row.is-coloured .is-pinned{background:var(--row-tint)}
.pin-field-list{display:grid;gap:4px;max-height:320px;overflow:auto;margin-top:16px}.pin-field-list label{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:9px;border-radius:8px}.pin-field-list label:hover{background:#f3f7f7}.pin-field-list input{width:auto!important;accent-color:var(--teal)}
