/* Rasim Al Majid — a warm, architectural accounting workspace. */
:root{--ink:#292d2b;--muted:#6c706b;--line:#e4e4dc;--paper:#fff;--bg:#f5f5f0;--primary:hsl(21,42%,39%);--hover:hsl(21,42%,31%);--active:hsl(21,42%,25%);--soft:#f3ece5;--warning:#865917;--radius:14px;font:15px/1.55 'Segoe UI Variable','Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{transition:background 140ms,border-color 140ms,transform 140ms}
button,.button{min-height:44px;border:1px solid transparent;border-radius:8px;padding:10px 17px;background:var(--primary);color:#fff;font-weight:600;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px}
button:hover,.button:hover{background:var(--hover)}
button:active,.button:active{background:var(--active);transform:translateY(1px)}
button.secondary,.button.secondary{background:var(--paper);color:var(--ink);border-color:var(--line)}
button.secondary:hover,.button.secondary:hover{background:var(--soft);border-color:#c9bbae}
button.secondary:active,.button.secondary:active{background:#e7d9cb}
button.danger{background:hsl(5,49%,40%)}
button.danger:hover{background:hsl(5,49%,32%)}
button.danger:active{background:hsl(5,49%,26%)}
button:disabled{opacity:.45;cursor:not-allowed}
button[aria-busy=true]{opacity:.65;cursor:wait}
button[aria-busy=true]::after{content:'';width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
a{color:var(--primary);text-underline-offset:3px}
a:hover{color:var(--hover)}
a:active{color:var(--active)}
:focus-visible{outline:3px solid #ae724b;outline-offset:3px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(30px,3vw,42px);font-weight:600;letter-spacing:-1.8px;line-height:1.16;margin-bottom:12px}
h2{font-size:18px;font-weight:600;letter-spacing:-.45px;line-height:1.4}
h3{font-size:15px}
p{color:var(--muted)}
small,.muted{color:var(--muted);font-size:12px}
.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:10px;font-weight:650;color:var(--muted)}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:46px;height:46px;flex-shrink:0;object-fit:contain;background:#fff;border-radius:10px;padding:3px}
.brand-name{min-width:0;line-height:1.35;font-size:14px;font-weight:600;letter-spacing:-.25px}
.brand-name small{display:block;letter-spacing:1.4px;font-size:8px;margin-top:6px;font-weight:500}
/* Workspace navigation */
.layout{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.sidebar{background:#242a29;color:#f0f0e9;padding:30px 16px 20px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;overflow-y:auto}
.sidebar .brand{padding:0 8px 25px;border-bottom:1px solid #414745;margin-bottom:18px}
.sidebar .brand-name small{color:#b8bbb2}
.sidebar nav{display:flex;flex-direction:column;gap:18px}
.sidebar .eyebrow{color:#a6aca5;padding:0 13px;margin-bottom:9px;font-size:9px}
.nav-group{display:flex;flex-direction:column;gap:3px}
.sidebar nav button{background:transparent;justify-content:flex-start;text-align:left;font-size:12px;color:#c9cdc7;padding:10px 12px;font-weight:500;gap:10px;min-height:42px}
.sidebar nav button:hover{background:#353d39;color:#fff}
.sidebar nav button.active{background:#f0e5d7;color:#3c342c}
.navnum{font-size:10px;opacity:.6;min-width:18px;font-variant-numeric:tabular-nums}
.nav-arrow{margin-left:auto;font-size:16px}
.sidebar footer{margin-top:auto;border-top:1px solid #414745;padding:18px 8px 0;font-size:12px}
.user-summary{display:flex;align-items:center;gap:11px;margin:12px 0}
.user-summary small{display:block;text-transform:capitalize;color:#aeb6ac}
.sidebar footer button{width:100%;background:transparent;border-color:#515952;color:#dbe0d7;font-size:12px}
.sidebar footer button:hover{background:#394139}
.avatar{width:36px;height:36px;background:var(--soft);color:var(--primary);display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:600;flex-shrink:0}
.sidebar .avatar{background:#41493f;color:#ede3d4}
.workspace{min-width:0}
.topbar{min-height:74px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 36px;gap:12px;font-size:12px;color:var(--muted);background:#ffffffa8}
.topbar strong{font-weight:500;color:var(--ink)}
.breadcrumb-divider{margin:0 13px;color:#a6aba2}
.topbar-meta{display:flex;align-items:center;gap:22px}
.workspace-badge{display:flex;align-items:center;gap:7px;font-size:11px}
.workspace-badge::before{content:'';width:6px;height:6px;background:#7d9275;border-radius:50%}
.mobile-nav{display:none}
.skip-link{position:fixed;top:-100px;left:260px;z-index:200;background:#fff;padding:12px}
.skip-link:focus{top:10px}
main{max-width:1620px;margin:auto;padding:35px 36px 24px}
.pagehead{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}
.pagehead .eyebrow{margin-bottom:10px;color:#8c654b}
.pagehead p{margin:0;font-size:13px;max-width:650px}
.pagehead .actions{flex-shrink:0}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.page-footer{margin-top:40px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}
.page-footer span:first-child{font-weight:600;text-transform:uppercase;letter-spacing:1px}
/* Shared surfaces, reporting and filters */
.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 24px;padding:16px;background:#eeefe8;border:1px solid #e3e5dc;border-radius:10px}
.filters label{font-size:10px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:6px;letter-spacing:.2px}
.filters input,.filters select{min-height:39px;max-width:210px;font-size:12px}
.filters button{min-height:39px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.stat,.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.stat{padding:21px 20px;position:relative;overflow:hidden}
.stat .label{font-size:12px;color:var(--muted);margin-bottom:17px}
.stat .value{font-size:clamp(21px,2vw,30px);line-height:1.3;font-weight:550;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stat small{display:block;margin-top:12px;font-size:10px;line-height:1.6}
.stat.emphasis{background:#e9ede3;border-color:#dce2d2}
.stats .stat:first-child{border-top:3px solid #a56c49;padding-top:19px}
.card{padding:24px;margin-bottom:22px;box-shadow:0 3px 5px #28291c02;min-width:0}
.cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.cardhead h2{margin:0}
.card>p{font-size:13px}
.two{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}
.pill{padding:4px 9px;background:#f0f1ec;color:#596354;display:inline-block;border-radius:5px;font-size:10px;white-space:nowrap;text-transform:capitalize;font-weight:600;letter-spacing:.15px}
.pill.approved,.pill.active,.pill.reconciled,.pill.closed{background:#e9efe4;color:#45643c}
.pill.submitted,.pill.returned,.pill.processing{background:#faf0dd;color:#835b17}
.pill.rejected,.pill.reversed,.pill.cancelled{background:#f9e9e3;color:#983f31}
.tablewrap{overflow:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#ccc9bf transparent}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;padding:13px 12px;background:#f7f7f3;color:#6e746a;font-size:10px;letter-spacing:.8px;text-transform:uppercase;font-weight:600;border-bottom:1px solid var(--line);white-space:nowrap}
th:first-child{border-radius:6px 0 0 6px}
th:last-child{border-radius:0 6px 6px 0}
td{padding:17px 12px;border-bottom:1px solid #eeeee7;vertical-align:middle}
td small{display:block;font-size:10px;margin-top:3px}
tbody tr:hover{background:#fafaf6}
tbody tr:last-child td{border-bottom:none}
td.amount,th.amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td button{font-size:11px;padding:6px 10px;min-height:36px}
.empty{text-align:center;padding:38px 18px}
.empty-mark{display:grid;place-items:center;margin:0 auto 16px;width:42px;height:42px;border:1px solid #dedbce;background:#f7f5ef;color:#a8815e;border-radius:12px;font-size:22px}
.empty h3{font-size:16px;font-weight:600;margin-bottom:8px}
.empty p{font-size:12px;max-width:410px;margin:0 auto}
.banner{background:#f2eee5;border:1px solid #e5ddcf;border-left:3px solid #b88a64;border-radius:8px;padding:16px 20px;margin-bottom:22px;font-size:12px;color:#69604e}
.banner p{margin:5px 0 0}
.banner button{margin-top:12px}
.balancegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.balancegrid div{background:#f5f6f1;padding:18px;border-radius:9px}
.balancegrid strong{display:block;margin-top:8px;font-size:22px;font-weight:550;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.balancegrid small{display:block;font-size:11px}
.projectgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}
.projectgrid .card{margin:0;display:flex;flex-direction:column}
.projectgrid h2{margin:20px 0 10px;font-size:22px}
.projectgrid p{font-size:13px}
.projectgrid .actions{margin-top:18px}
.projectmeta{border-top:1px solid var(--line);padding-top:16px;margin-top:auto;font-size:11px;color:var(--muted)}
.barrow{margin:24px 0}
.barrow div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.barrow small{font-size:10px}
.track{height:5px;background:#eef0e8;border-radius:3px;margin-top:10px;overflow:hidden}
.track progress{width:100%;height:5px;appearance:none;border:0}
.track progress::-webkit-progress-bar{background:#eef0e8}
.track progress::-webkit-progress-value{background:#99a78b}
.track progress::-moz-progress-bar{background:#99a78b}
.reviewrow{padding:16px 0;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
.reviewrow:last-child{border:0}
.reviewrow .body{flex:1;min-width:0}
.reviewrow strong{font-size:12px}
.reviewrow small{display:block;font-size:10px}
.reviewrow button{padding:7px 10px;font-size:11px}
.project-funds-account{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.project-funds-account td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}
.project-funds-account td:last-child{background:#f1f3ea}
.project-funds-account .footnote{font-size:10px}
/* Access: an editorial entry with an architectural line composition. */
.access-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;padding:18px;gap:18px;background:#f7f7f2}
.access-story{background:#262e2b;color:#f3f0e5;border-radius:16px;padding:40px 44px;display:flex;flex-direction:column;position:relative;overflow:hidden;min-height:690px}
.access-story .brand{max-width:310px;position:relative;z-index:1}
.access-story .brand-name small{color:#bfc5b6}
.story-copy{margin:auto 0;position:relative;padding:65px 0}
.story-copy .eyebrow{color:#c1bdab;font-size:10px}
.story-copy h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,5vw,76px);font-weight:400;line-height:1.08;letter-spacing:-3px;margin:24px 0}
.story-copy h2 em{color:#d9b38e;font-weight:400}
.story-copy p{color:#c0c7bc;max-width:315px;font-size:14px;line-height:1.8;position:relative;z-index:1}
.story-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #576053;padding-top:22px;font-size:9px;letter-spacing:1px;color:#b5bdad}
.story-lines{position:absolute;right:-130px;bottom:-180px;width:380px;height:400px;transform:rotate(-25deg);pointer-events:none;opacity:.27}
.story-lines span{position:absolute;border:1px solid #b6b990;width:100%;height:100%;border-radius:180px 180px 0 0}
.story-lines span:nth-child(2){inset:25px;width:calc(100% - 50px);height:100%}
.story-lines span:nth-child(3){inset:50px;width:calc(100% - 100px);height:100%}
.access-form{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:45px 30px;min-width:0}
.auth{width:100%;max-width:390px}
.auth .brand{margin-bottom:48px}
.auth .brand-logo{width:54px;height:54px}
.auth .brand-name{font-size:15px}
.auth .eyebrow{color:var(--primary);margin-bottom:13px}
.auth h1{font-size:34px;letter-spacing:-1.3px;line-height:1.16}
.auth>p{font-size:13px;line-height:1.8;margin-bottom:28px}
.auth form{display:grid;gap:18px}
.auth form>small:empty{display:none}
.auth button{width:100%;min-height:48px}
.auth .footnote{margin-top:24px;margin-bottom:0;font-size:10px;text-align:center}
.access-footer{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;margin:55px 0 0;color:#7d8176}
.initial{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:30px;text-align:center}
.initial img{border-radius:16px}
.initial strong{font-size:18px}
.initial>span{font-size:12px;color:var(--muted)}
.loading-line{width:100px;height:2px;background:var(--primary);animation:breathe 1s ease-in-out infinite alternate}
/* Forms and dialogs */
label.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}
input,select,textarea{border:1px solid #d5d8ce;border-radius:8px;background:#fff;color:var(--ink);padding:11px 12px;min-height:44px;width:100%;max-width:100%;font-size:13px}
input:hover,select:hover,textarea:hover{border-color:#a7b09d}
input:disabled,select:disabled,textarea:disabled{background:#edf0e8;color:var(--muted)}
input[type=checkbox]{accent-color:var(--primary)}
input[type=file]{font-size:12px}
input::file-selector-button{border:0;border-radius:4px;padding:5px 9px;margin-right:9px;color:var(--ink);background:var(--soft);cursor:pointer}
textarea{min-height:96px;resize:vertical}
select[multiple]{min-height:125px}
.hint{font-size:11px;font-weight:400;color:var(--muted);line-height:1.7}
dialog{width:min(760px,calc(100vw - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);background:#fff;box-shadow:0 30px 100px #121d2433}
dialog::backdrop{background:#19231c88;backdrop-filter:blur(5px)}
.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 28px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fafbf7;z-index:1}
.dialoghead h2{margin:0;font-size:22px}
.dialogbody{padding:26px 28px}
.dialogbody>p{font-size:13px}
.formgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.wide{grid-column:1/-1}
.formfoot{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
.error{color:#97362c;background:#fff0ec;border:1px solid #f0d4cc;border-radius:7px;padding:12px;font-size:13px;grid-column:1/-1}
.error:empty{display:none}
.detail{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:25px}
.detail div{border-bottom:1px solid var(--line);padding-bottom:13px}
.detail span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin-bottom:5px}
.detail strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.footnote{font-size:11px;color:var(--muted);margin:20px 0;line-height:1.8}
.check{display:flex;align-items:center;gap:10px;font-size:13px}
.check input{width:18px;min-height:18px;flex-shrink:0}
#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:10px;padding:15px 22px;z-index:100;box-shadow:0 5px 30px #0002;max-width:90vw;font-size:13px}
#notice:empty{display:none}
[hidden]{display:none!important}
pre{white-space:pre-wrap;word-break:break-word;max-width:540px;font-size:11px}
summary{cursor:pointer;color:var(--primary);padding:5px 0}
/* Directory and matching flows */
.contact-roles{border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;gap:12px;flex-wrap:wrap}
.contact-roles legend{font-size:12px;font-weight:600}
.contact-roles small{flex-basis:100%}
.contact-roles .check{min-height:44px;cursor:pointer}
.contact-match{border:1px solid var(--line);border-radius:12px;background:#fff;padding:22px;margin:16px 0;overflow-wrap:anywhere}
.contact-match>strong{font-size:18px;letter-spacing:-.4px}
.contact-match.blocked{border-color:#bd7263;background:#fff9f5}
.contact-match p{font-size:12px;margin:12px 0}
.contact-match small{display:block;margin:6px 0;font-size:10px}
.contact-match button{margin-top:8px}
.contact-tags{margin-top:10px}
.match-reason{font-weight:600;color:var(--warning)}
.contact-records-title{margin-top:26px}
#directory-search .field{flex:1;min-width:200px}
#directory-search input{max-width:none}
#directory-results td:last-child button{margin:3px}
#contact-search-results{margin-top:24px}
.directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}
.directory-grid .contact-match{margin:0}
.contact-projects{border-top:1px solid var(--line);padding-top:12px}
/* Responsive layouts retain access to every section. */
@media(min-width:1500px){main{padding:42px 48px}
.topbar{padding-left:48px;padding-right:48px}
.stat{padding:26px}
.stats .stat:first-child{padding-top:24px}}
@media(max-width:1200px){.layout{grid-template-columns:222px minmax(0,1fr)}
.sidebar{padding:24px 12px}
.sidebar .brand{gap:8px}
.sidebar .brand-name{font-size:12px}
.sidebar nav button{font-size:11px;gap:7px}
main{padding:28px 24px}
.topbar{padding:16px 24px}
.workspace-badge{display:none}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.projectgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.two{grid-template-columns:1fr}
.pagehead{align-items:flex-start}
.pagehead .actions{max-width:220px;justify-content:flex-end}
.access-story{padding:32px}
.story-copy h2{font-size:58px}}
@media(max-width:760px){.layout{display:block}
.sidebar{position:sticky;top:0;height:auto;z-index:5;padding:12px 16px 8px;overflow:visible}
.sidebar .brand{border:0;padding:0;margin:0 0 12px;max-width:310px}
.sidebar .brand-logo{width:32px;height:32px;border-radius:7px}
.sidebar .brand-name{font-size:12px}
.sidebar .brand-name small{display:none}
.sidebar nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#63705e transparent}
.nav-group{display:contents}
.sidebar nav button{white-space:nowrap;min-height:40px;font-size:12px;flex-shrink:0;padding:8px 12px}
.sidebar .eyebrow,.sidebar footer,.navnum,.nav-arrow{display:none}
.topbar{min-height:56px;padding:9px 16px;font-size:10px;gap:8px}
.topbar-meta{gap:8px}
.topbar time{display:none}
.breadcrumb-divider{margin:0 6px}
.mobile-nav{display:inline-flex;padding:5px 10px;min-height:36px;font-size:11px}
main{padding:25px 16px}
.pagehead{flex-direction:column;gap:18px;margin-bottom:22px}
.pagehead .actions{max-width:none;justify-content:flex-start}
.pagehead p{font-size:12px}
h1{font-size:32px}
.stats{gap:10px}
.stat{padding:17px 14px}
.stats .stat:first-child{padding-top:15px}
.stat .value{font-size:22px;letter-spacing:-.8px}
.stat .label{font-size:10px;margin-bottom:12px}
.stat small{font-size:9px}
.card{padding:18px}
.cardhead{flex-wrap:wrap;gap:10px}
.cardhead h2{font-size:17px}
.projectgrid{grid-template-columns:1fr}
.balancegrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.balancegrid div{padding:12px}
.balancegrid strong{font-size:20px}
.filters{gap:10px;padding:12px}
.filters label{flex:1;min-width:120px}
.filters select,.filters input{max-width:none}
.filters button{flex-grow:1}
.formgrid,.detail{grid-template-columns:minmax(0,1fr)}
.dialoghead,.dialogbody{padding:18px}
.dialoghead h2{font-size:19px}
.wide{grid-column:auto}
.formfoot{flex-wrap:wrap}
.formfoot button{flex:1}
.pagehead .actions button{font-size:12px}
.page-footer{flex-direction:column;gap:4px}
.access-layout{display:block;padding:0}
.access-story{display:none}
.access-form{min-height:100dvh;padding:35px 25px}
.auth .brand{margin-bottom:42px}
.auth h1{font-size:34px}
.access-footer{margin-top:35px}
.auth input{font-size:16px}
.skip-link{left:16px}
.directory-grid{grid-template-columns:1fr}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes breathe{from{opacity:.3;transform:scaleX(.4)}
to{opacity:1;transform:scaleX(1)}}
@keyframes enter{from{opacity:0;transform:translateY(9px)}
to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){.pagehead,.auth,.story-copy{animation:enter .35s ease both}
.stats .stat{animation:enter .4s ease both}
.stats .stat:nth-child(2){animation-delay:40ms}
.stats .stat:nth-child(3){animation-delay:80ms}
.stats .stat:nth-child(4){animation-delay:120ms}
dialog[open]{animation:enter .2s ease both}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
