*{box-sizing:border-box}

:root{
  --page:#fffdf8;
  --sidebar:#fffaf0;
  --paper:#ffffff;
  --ink:#142544;
  --muted:#6f7a8e;
  --line:#ead9a9;
  --line-soft:#f0e7cf;
  --gold:#d6a947;
  --gold-dark:#aa7926;
  --yellow:#fff4c9;
  --yellow-2:#fff9e8;
  --orange:#ee7a2c;
  --green:#4d8060;
  --shadow:0 14px 32px rgba(53,45,25,.055);
}

html,body{margin:0;min-height:100%}

body{
  background:var(--page);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,input,select{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:280px;
  padding:24px 18px 18px;
  background:linear-gradient(180deg,#fffdf8,#fffaf0);
  border-right:1px solid #eee5cc;
  display:flex;
  flex-direction:column;
  overflow:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 4px 30px;
}

.brand-mark{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid #f1caa7;
  background:#fff0df;
  color:var(--orange);
  font-size:21px;
  font-weight:900;
}

.brand-text{
  color:#1a2c4b;
  font-size:19px;
  font-weight:800;
  letter-spacing:-.03em;
}

.main-nav{display:grid;gap:9px}

.nav-button{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:9px 12px;
  border:1px solid #eadfbd;
  border-radius:11px;
  background:#fff;
  color:#213456;
  font-size:12px;
  font-weight:800;
  text-align:left;
  box-shadow:0 4px 12px rgba(64,53,27,.025);
  transition:.14s ease;
}

.nav-button:hover{
  transform:translateY(-1px);
  border-color:#e0c673;
  box-shadow:0 7px 14px rgba(64,53,27,.06);
}

.nav-button.active{
  border-color:#e4bd53;
  background:linear-gradient(180deg,#fff8da,#fff3c4);
  color:#6a4a12;
}

.nav-icon{
  width:28px;height:28px;
  display:grid;place-items:center;
  border:1px solid #eadfc2;
  border-radius:8px;
  background:#fffdf7;
  color:#a87926;
  font-size:12px;
  font-weight:900;
  flex:none;
}

.sidebar-rule{
  height:1px;
  margin:24px 4px 18px;
  background:#eee6d2;
}

.quick-title{
  margin:0 8px 8px;
  color:#9c9078;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
}

.quick-links{display:grid;gap:3px}

.quick-links button{
  width:100%;
  padding:7px 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#68758a;
  font-size:10px;
  font-weight:700;
  text-align:left;
}

.quick-links button:hover{
  background:#fff8df;
  color:#634a19;
}

.sidebar-footer{
  margin-top:auto;
  padding:16px 8px 0;
  border-top:1px solid #eee6d2;
  color:#8d826d;
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.sidebar-footer small{
  display:block;
  margin-top:4px;
  color:#b1a896;
  font-size:7px;
}

.workspace{
  margin-left:280px;
  min-height:100vh;
  padding:26px;
  background:#fffefa;
}

.view{display:none}
.view.active{display:block}

.panel{
  width:100%;
  min-height:calc(100vh - 52px);
  padding:24px;
  border:1px solid #eee4cb;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}

.panel-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:3px 2px 20px;
}

.eyebrow{
  display:block;
  margin-bottom:4px;
  color:#b59248;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.panel-header h1{
  margin:0;
  color:#16284a;
  font-size:28px;
  line-height:1;
  letter-spacing:-.03em;
}

.panel-header p{
  margin:7px 0 0;
  color:#748096;
  font-size:11px;
}

.resource-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  border-top:1px solid #f0e7d4;
  border-bottom:1px solid #f0e7d4;
}

.search-box{
  width:min(630px,100%);
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid #dfe3ea;
  border-radius:9px;
  background:#fff;
}

.search-box span{color:#8c96a7}

.search-box input{
  width:100%;
  border:0;
  outline:0;
  color:#273752;
  font-size:11px;
}

.search-box input::placeholder{color:#9ba5b3}

.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.filter{
  min-height:34px;
  padding:0 10px;
  border:1px solid #eadcb6;
  border-radius:8px;
  background:#fffdf7;
  color:#75643e;
  font-size:8px;
  font-weight:850;
}

.filter.active{
  border-color:#d6ac49;
  background:#fff3bf;
  color:#634411;
}

.resource-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 1px 10px;
}

.resource-summary span{
  color:#6c7890;
  font-size:9px;
  font-weight:750;
}

.resource-summary select{
  min-height:34px;
  padding:0 30px 0 9px;
  border:1px solid #e2e4e8;
  border-radius:8px;
  background:#fff;
  color:#5e6a7e;
  font-size:8px;
}

.resource-groups{
  display:grid;
  gap:7px;
  max-height:calc(100vh - 255px);
  overflow:auto;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:#dac989 transparent;
}

.resource-group{
  border:1px solid #e8cc73;
  border-radius:10px;
  background:#fffefb;
  overflow:hidden;
}

.group-header{
  width:100%;
  min-height:43px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  border:0;
  background:#fffdf8;
  color:#1d3153;
  font-size:10px;
  font-weight:850;
  text-align:left;
}

.group-header:hover{background:#fff9e8}

.group-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.chevron{
  display:inline-block;
  width:14px;
  color:#7a653c;
  transition:.15s;
}

.resource-group.open .chevron{transform:rotate(90deg)}

.count-pill{
  min-width:26px;
  padding:4px 7px;
  border-radius:999px;
  background:#fff2c7;
  color:#8b6720;
  font-size:7px;
  font-weight:900;
  text-align:center;
}

.group-body{
  display:none;
  border-top:1px solid #eee6d4;
}

.resource-group.open .group-body{display:block}

.resource-table-head,
.resource-row{
  display:grid;
  grid-template-columns:minmax(250px,1.8fr) 140px 100px 90px 90px;
  align-items:center;
  gap:10px;
  padding:9px 12px;
}

.resource-table-head{
  background:#fffdf8;
  color:#8791a1;
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.resource-row{
  border-top:1px solid #f0eadc;
  color:#2b3c59;
  font-size:9px;
}

.resource-name{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-weight:760;
}

.file-icon{
  width:25px;height:25px;
  display:grid;place-items:center;
  border:1px solid #eadbb7;
  border-radius:7px;
  background:#fff9e8;
  color:#aa7c26;
  font-size:8px;
  font-weight:900;
  flex:none;
}

.resource-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tag{
  display:inline-block;
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  background:#fff4cf;
  color:#7b6531;
  font-size:7px;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.resource-type{
  color:#6d7787;
  font-size:8px;
  font-weight:800;
}

.row-action{
  display:inline-flex;
  justify-content:center;
  min-width:70px;
  padding:6px 8px;
  border:1px solid #eadfbe;
  border-radius:7px;
  background:#fff;
  color:#334660;
  font-size:7px;
  font-weight:900;
}

.empty-state{
  padding:40px;
  border:1px dashed #e6d5a1;
  border-radius:10px;
  background:#fffdf7;
  color:#7b8492;
  font-size:10px;
  text-align:center;
}

.tool-grid{
  display:grid;
  gap:10px;
  margin-top:8px;
}

.tool-card{
  min-height:105px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:15px;
  padding:15px;
  border:1px solid #ead8a2;
  border-radius:12px;
  background:#fffdf8;
}

.tool-card-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border:1px solid #e7cc75;
  border-radius:10px;
  background:#fff5cf;
  color:#9c7425;
  font-size:14px;
  font-weight:900;
}

.tool-card-title{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.tool-card h2{
  margin:0;
  color:#213653;
  font-size:15px;
}

.tool-card p{
  margin:5px 0 0;
  color:#758095;
  font-size:9px;
  line-height:1.5;
}

.free-pill{
  padding:3px 6px;
  border:1px solid #d6e2d8;
  border-radius:999px;
  background:#eef6ef;
  color:#55735f;
  font-size:6px;
  font-weight:900;
  text-transform:uppercase;
}

.open-tool{
  min-width:90px;
  padding:8px 10px;
  border:1px solid #e2cf92;
  border-radius:8px;
  background:#fff;
  color:#6a4c12;
  font-size:8px;
  font-weight:900;
  text-align:center;
}

.open-tool.disabled{
  background:#f7f5ef;
  color:#9a9486;
  pointer-events:none;
}

.custom-list{
  display:grid;
  border-top:1px solid #efe7d5;
}

.custom-list article{
  min-height:118px;
  display:grid;
  grid-template-columns:46px 1fr;
  gap:16px;
  align-items:center;
  border-bottom:1px solid #efe7d5;
}

.custom-list article>span{
  color:#c19131;
  font-size:9px;
  font-weight:900;
}

.custom-list h2{
  margin:0;
  color:#223754;
  font-size:16px;
}

.custom-list p{
  margin:6px 0 0;
  color:#748095;
  font-size:9px;
}

.enquiry-line{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  margin-top:18px;
  padding:13px 14px;
  border:1px solid #ead8a4;
  border-radius:10px;
  background:#fff9e5;
  color:#685b3c;
  font-size:9px;
}

.enquiry-line a{
  color:#9a6520;
  font-weight:900;
}

.simple-list{
  display:grid;
  gap:8px;
  margin-top:8px;
}

.simple-link{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:12px 14px;
  border:1px solid #ead8a3;
  border-radius:10px;
  background:#fffdf8;
}

.simple-link strong{
  color:#273b59;
  font-size:10px;
}

.simple-link span{
  color:#8b94a2;
  font-size:8px;
}

.simple-link a{
  color:#96691c;
  font-size:8px;
  font-weight:900;
}

.contact-panel{min-height:auto}

.contact-card{
  max-width:460px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:18px;
  border:1px solid #e8d394;
  border-radius:12px;
  background:#fff9e4;
}

.contact-mark{
  width:42px;height:42px;
  display:grid;place-items:center;
  border:1px solid #efc7a4;
  border-radius:50%;
  background:#fff0df;
  color:var(--orange);
  font-size:22px;
  font-weight:900;
}

.contact-details strong,
.contact-details span,
.contact-details a{
  display:block;
}

.contact-details strong{
  color:#203452;
  font-size:13px;
}

.contact-details span,
.contact-details a{
  margin-top:5px;
  color:#6f7888;
  font-size:9px;
}

.contact-details a{color:#98651f;font-weight:850}

@media(max-width:900px){
  .sidebar{
    position:relative;
    width:100%;
    border-right:0;
    border-bottom:1px solid #eee5cc;
  }

  .workspace{margin-left:0}

  .resource-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .resource-table-head{display:none}

  .resource-row{
    grid-template-columns:1fr auto;
    gap:7px;
  }

  .resource-row > :nth-child(2),
  .resource-row > :nth-child(3),
  .resource-row > :nth-child(4){
    display:none;
  }

  .tool-card{
    grid-template-columns:42px 1fr;
  }

  .open-tool{
    grid-column:2;
    width:max-content;
  }
}
