:root {
  font-family: Tahoma, Arial, sans-serif;
  color: #182f3b;
  background: #f3f6f8;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  background: #087f82;
  color: white;
}
button:hover {
  filter: brightness(0.94);
}
button.secondary {
  background: #e9f0f2;
  color: #234654;
}
button.danger {
  background: #b54343;
}
input,
select,
textarea {
  border: 1px solid #d5e0e5;
  border-radius: 8px;
  padding: 11px;
  background: white;
  color: #243f4c;
  width: 100%;
}
label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: #48616e;
}
textarea {
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 20px;
}
small,
.muted {
  color: #728591;
  line-height: 1.9;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #132e3e;
  color: #e8f3f6;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand {
  font-family: Arial;
  font-weight: 800;
  letter-spacing: 5px;
  font-size: 34px;
  color: #68d9cd;
}
.sidebar .muted {
  color: #abc2ce;
}
.nav {
  display: grid;
  gap: 7px;
  margin-top: 35px;
}
.nav button {
  text-align: right;
  background: transparent;
  color: #c8dbe3;
}
.nav button.active {
  background: #245062;
  color: white;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #385364;
  padding-top: 22px;
  font-size: 12px;
  line-height: 2;
}
.main {
  padding: 30px 40px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.eyebrow {
  font-size: 12px;
  color: #087f82;
  margin-bottom: 10px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
.row button {
  flex: 0 0 auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid #e1e9ed;
  border-radius: 14px;
  padding: 24px;
}
.card strong {
  font-size: 30px;
  display: block;
  margin-top: 15px;
}
.card span {
  color: #6e838e;
}
.panel {
  margin-top: 20px;
}
.notice {
  background: #eaf6f3;
  border-right: 3px solid #108c82;
  border-radius: 9px;
  padding: 16px;
  line-height: 1.9;
  color: #366660;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}
.toolbar input {
  flex: 2;
}
.toolbar select {
  flex: 1;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
}
th {
  font-weight: normal;
  color: #6f8591;
  background: #f6f9fa;
  padding: 15px;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #edf1f3;
}
td button {
  padding: 7px 12px;
  background: #edf5f5;
  color: #087f82;
}
.badge {
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  background: #eef2f5;
  color: #586f7d;
}
.badge.approved {
  background: #def4e8;
  color: #247b50;
}
.badge.submitted {
  background: #fff2d5;
  color: #9d721d;
}
.badge.rejected {
  background: #fbe5e5;
  color: #a73a3a;
}
.empty {
  text-align: center;
  padding: 55px;
  color: #81939d;
}
.login {
  max-width: 430px;
  margin: 10vh auto;
  padding: 35px;
}
.login .brand {
  color: #087f82;
  margin-bottom: 15px;
}
.login button {
  width: 100%;
  margin-top: 15px;
}
.login footer {
  font-size: 11px;
  color: #8ca0a8;
  text-align: center;
  margin-top: 30px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  width: min(760px, 94vw);
  max-height: 90vh;
  color: #213e4d;
}
dialog::backdrop {
  background: #102c3cb0;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
dialog header button {
  background: #eff3f5;
  color: #425d6b;
  padding: 8px 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.checklist label {
  display: flex;
  align-items: center;
}
.checklist input {
  width: auto;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: #213e4d;
  color: white;
  border-radius: 10px;
  padding: 15px 22px;
  display: none;
  z-index: 10;
  max-width: 90vw;
}
.error {
  color: #b33d3d;
  margin: 12px 0;
}
.mono {
  font-family: monospace;
  direction: ltr;
  display: inline-block;
  font-size: 12px;
}
.integration {
  padding: 12px 0;
  border-bottom: 1px solid #e8edef;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 15px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
  }
  .brand {
    font-size: 25px;
  }
  .sidefoot {
    display: none;
  }
  .main {
    padding: 22px 14px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .topbar {
    gap: 12px;
  }
  .topbar h1 {
    font-size: 21px;
  }
}
@media (max-width: 850px) {
  .sidefoot {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
  }
  .sidefoot br {
    display: none;
  }
}
/* Allow grid children and long document tables to shrink without widening the page. */
.main, .sidebar, .panel, .card, .tablewrap { min-width: 0; }
.layout { grid-template-columns: 230px minmax(0, 1fr); }
.toolbar input, .toolbar select, .row > * { min-width: 0; }
.sidefoot { flex-wrap: wrap; }
@media (max-width: 850px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.workspace-hero{display:flex;gap:24px;justify-content:space-between;align-items:center;padding:26px;background:#e6f3f0;border:1px solid #cfe4df;border-radius:16px}
.workspace-hero label{min-width:230px}.workspace-hero p{color:#486b6a;line-height:1.9}.project-grid,.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:22px}.project-tile,.module-tile{padding:20px;border:1px solid #dfe9ed;border-radius:12px;min-width:0}.project-tile h3{margin-top:12px;line-height:1.8;overflow-wrap:anywhere}.project-tile p{color:#58737d}.module-tile{display:flex;flex-direction:column;align-items:flex-start;gap:18px}.sidebar .brand{font-size:27px;letter-spacing:3px}@media(max-width:850px){.workspace-hero{flex-direction:column;align-items:stretch}.workspace-hero label{min-width:0}.project-grid,.module-grid{grid-template-columns:minmax(0,1fr)}}
.brand-fa{display:block;letter-spacing:0;font-size:24px;color:#d6eee9;margin-top:5px}.workspace-switch{display:block;margin:24px 0 16px;color:#b9d2ce;font-size:12px}.workspace-switch select{width:100%;margin-top:8px;background:#234441;color:white;border-color:#4b6965;font-size:12px}.nav-group{margin:8px 0;border-top:1px solid #ffffff16;padding-top:12px}.nav-group summary{cursor:pointer;color:#aac7c1;font-size:12px;padding:5px 8px 10px}.nav .nav-group button{padding-right:24px;font-size:13px;width:100%;text-align:right}.workspace-emblem{font-size:52px;font-weight:800;color:#248c79;white-space:nowrap}.workspace-hero h2{line-height:1.8}.sidebar{overflow-y:auto}.nav{display:block}@media(max-width:850px){.nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workspace-switch{margin:12px 0}.workspace-emblem{display:none}}
@media(max-width:850px){.sidebar{padding:16px;gap:4px}.sidebar .brand{font-size:23px}.brand-fa{display:inline;font-size:20px;margin-right:12px}.nav{margin-top:4px}.nav-group{margin:0;padding-top:6px}.workspace-switch{margin:8px 0}.workspace-switch select{margin:0}.nav>button{align-self:start}.main{margin:0}}
.project-tabs{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #e0e9e8;margin-top:20px;padding-top:18px}.project-header h2{margin:8px 0}.project-header .actions{flex-wrap:wrap}.task-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:18px 0}.task-card{display:block;width:100%;background:#fff;color:#24434a;text-align:right;border:1px solid #d6e4e5;padding:18px;box-shadow:0 3px 9px #193f4b08}.task-card h3{font-size:15px;line-height:1.8;margin:12px 0;overflow-wrap:anywhere}.task-card p{font-size:12px;margin-top:12px}.task-card .overdue{color:#b24339}.project-board{display:flex;gap:16px;overflow-x:auto;padding:20px 0;align-items:flex-start}.board-column{background:#f0f5f5;border:1px solid #dfebea;border-radius:12px;padding:14px;min-width:260px;flex:1}.board-column .task-card{margin-bottom:12px}.board-column h3{font-size:14px}.message-feed{max-height:520px;overflow:auto;padding:10px 0}.project-message{background:#eaf5f1;border:1px solid #d6e9e1;border-radius:12px;padding:18px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.project-message header{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#46675e}.project-message p{margin:14px 0;line-height:1.9}.system-event{background:#f6f8fa}.project-message .task-card{max-width:420px}.project-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:20px}.project-calendar>b{text-align:center;font-size:12px;padding:10px 0}.calendar-day{background:#eef5f4;color:#214f4c;min-height:80px;padding:8px 3px;border:1px solid #dce8e5;display:flex;flex-direction:column;align-items:center;gap:6px}.calendar-day small{font-size:10px;color:inherit}.calendar-day.selected{background:#087f82;color:white}.calendar-day.outside{opacity:.45}.calendar-heading{margin-top:24px}.unscheduled{margin-top:24px;border-top:1px solid #ddd;padding-top:18px}.check-row{display:flex;align-items:center;gap:8px;margin:10px 0}.check-row input[type=checkbox]{width:20px;flex:none}fieldset{border:1px solid #d6e5e2;border-radius:10px;margin:18px 0}.project-header .row{flex-wrap:wrap}@media(max-width:650px){.project-calendar>b{font-size:10px}.calendar-day{min-height:65px}.project-message header{flex-direction:column}.project-tabs button{flex:1 0 40%}}
.project-composer{position:sticky;bottom:0;background:#fff;border-top:1px solid #dbe7e2;padding-top:14px;box-shadow:0 -10px 22px #173d3410}.project-composer textarea{width:100%;min-height:82px;margin:0;box-sizing:border-box}.composer-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.composer-popups{position:relative;display:flex;gap:7px}.composer-popup{position:absolute;bottom:44px;right:0;z-index:5;width:260px;padding:8px;background:#fff;border:1px solid #d9e7e1;border-radius:12px;box-shadow:0 12px 30px #183d3020}.composer-popup button{background:#f4f8f6;color:#315d53;padding:7px 9px;margin:2px}.mention-picker{max-height:180px;overflow:auto}.mention-picker button{display:block;width:100%;text-align:right}.mention-tag{display:inline-block;background:#d8eee5;color:#286553;border-radius:7px;padding:2px 7px;font-size:11px;margin-left:5px}.message-file{display:block;margin-top:10px;border:1px solid #d1e4dc;border-radius:9px;padding:8px 10px;background:#fff;color:#276e5c;text-decoration:none;font-size:12px;white-space:normal}.message-file:hover{background:#f1f8f4}@media(max-width:650px){.project-composer{bottom:-1px}.composer-tools{align-items:stretch}.composer-tools>#file-label{order:4;width:100%}}
.message-day{width:max-content;max-width:100%;margin:18px auto 12px;padding:3px 11px;background:#eef3f1;border:1px solid #dbe6e0;border-radius:999px;color:#607870;font-size:11px;text-align:center}
.message-filters{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(120px,auto));gap:8px;align-items:center;margin:0 0 8px}.message-filters select{font-size:12px;padding:9px 10px}@media(max-width:850px){.message-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.message-filters input{grid-column:1/-1}}
.message-actions{display:flex;gap:7px;margin-top:10px;opacity:0;transition:opacity .15s}.message-actions button{font-size:11px;padding:5px 9px}.project-message:hover .message-actions,.project-message:focus-within .message-actions{opacity:1}.message-task-link{display:block;margin-top:9px;color:#39715e;font-size:11px}
.reply-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px;padding:8px 10px;background:#eef7f3;border-right:3px solid #3c9a79;border-radius:8px;color:#365d51;font-size:12px;white-space:nowrap;overflow:hidden}.reply-preview span{overflow:hidden;text-overflow:ellipsis}.reply-preview button{flex:none;padding:3px 8px}
.reply-quote{display:flex;flex-direction:column;gap:3px;margin:10px 0 0;padding:7px 10px;border-right:3px solid #5a9d85;background:#f4faf7;border-radius:7px;color:#547168;font-size:11px;white-space:nowrap;overflow:hidden}.reply-quote span{overflow:hidden;text-overflow:ellipsis}
.message-image{display:block;max-width:min(100%,360px);max-height:280px;object-fit:cover;margin-top:10px;border:1px solid #cfe1d9;border-radius:10px;background:#f5faf8;cursor:zoom-in}.message-image-full{display:block;max-width:min(82vw,900px);max-height:72vh;margin:8px auto;object-fit:contain;border-radius:10px}
