@charset "UTF-8";
:root {
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#20272a;
  background:#f5f6f7;
  font-synthesis:none;
  --orange:#ed6024;
  --muted:#748087;
  --line:#e6eaec
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,textarea,select {
  font:inherit
}

button,a,input,textarea,select {
  outline-offset:4px
}

button {
  cursor:pointer
}

button:disabled {
  opacity:.5;
  cursor:default
}

[hidden] {
  display:none!important
}

h1,h2,h3,p {
  margin-top:0
}

h1 {
  font-size:30px;
  letter-spacing:-1px;
  margin-bottom:8px
}

h2 {
  font-size:24px;
  letter-spacing:-.5px
}

h3 {
  font-size:18px
}

.muted {
  color:var(--muted);
  line-height:1.6
}

.small {
  font-size:12px
}

.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--muted)
}

label {
  display:block;
  font-size:12px;
  font-weight:600
}

input,textarea,select {
  display:block;
  width:100%;
  border:1px solid #dce1e4;
  border-radius:7px;
  padding:12px;
  color:#263136;
  background:white;
  margin-top:8px
}

input:focus,textarea:focus {
  border-color:var(--orange)
}

button {
  border:0;
  border-radius:7px;
  padding:12px 17px;
  font-size:13px;
  font-weight:600;
  transition:background .15s
}

.primary {
  background:var(--orange);
  color:white
}

.primary:hover {
  background:#d64b10
}

.secondary {
  background:white;
  border:1px solid #dce2e5;
  color:#354149
}

.text-button {
  background:transparent;
  color:#6d797f;
  padding:8px 0
}

.brand {
  color:white;
  font-size:36px;
  font-weight:900;
  letter-spacing:-2px;
  display:flex;
  align-items:center;
  gap:16px
}

.brand span {
  font-size:14px;
  letter-spacing:0;
  font-weight:400;
  border-left:1px solid #5a6268;
  padding-left:16px
}

.brand.dark {
  color:#222
}

.auth-screen {
  min-height:100vh;
  display:grid;
  grid-template-columns:46% 54%
}

.intro {
  padding:55px 60px;
  background:#20292d;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:700px
}

.intro:after {
  content:"";
  position:absolute;
  right:0;
  top:36%;
  height:155px;
  width:5px;
  background:var(--orange)
}

.intro-copy h1 {
  font-size:45px;
  line-height:1.16;
  font-weight:500;
  letter-spacing:-1.8px;
  color:white
}

.intro-copy .eyebrow {
  color:#b5bfc3;
  margin-bottom:26px
}

.intro-copy>p:last-child {
  color:#aeb9bf;
  line-height:1.8;
  font-size:15px
}

.intro-bottom {
  font-size:12px;
  color:#8f9ba1
}

.auth-panel {
  display:grid;
  place-items:center;
  padding:40px
}

.auth-card {
  width:100%;
  max-width:360px
}

.auth-card h2 {
  font-size:30px;
  margin-bottom:10px
}

.auth-card>.muted {
  font-size:14px;
  margin-bottom:30px
}

.auth-card label {
  margin-bottom:20px
}

.auth-card .primary {
  width:100%;
  padding:15px
}

.auth-help {
  font-size:11px;
  color:#8b949b;
  line-height:1.8;
  margin:24px 0
}

.error {
  font-size:13px;
  color:#b73429;
  line-height:1.6
}

.setup-screen {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:35px
}

.setup-card {
  max-width:460px;
  padding:32px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px
}

.setup-card .brand {
  margin-bottom:36px
}

.setup-card h1 {
  font-size:25px
}

.invite-qr {
  margin: 0 0 22px;
  text-align: center;
}

.invite-qr img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

.invite-qr figcaption {
  color: #445158;
  font-size: 13px;
  line-height: 1.5;
}

#notice {
  position:fixed;
  right:24px;
  top:20px;
  max-width:450px;
  padding:14px 18px;
  border-radius:8px;
  background:#27383b;
  color:white;
  box-shadow:0 8px 30px #0002;
  z-index:10;
  font-size:13px
}

.workspace {
  display:grid;
  grid-template-columns:215px 1fr;
  min-height:100vh
}

.sidebar {
  background:#20292d;
  color:#b6c0c5;
  padding:30px 20px;
  display:flex;
  flex-direction:column
}

.sidebar .brand {
  font-size:31px;
  margin:5px 5px 65px
}

.sidebar .brand span {
  font-size:13px
}

.sidebar-label {
  font-size:9px;
  letter-spacing:1.5px;
  color:#819097;
  margin:0 10px 20px
}

.nav {
  display:flex;
  justify-content:space-between;
  width:100%;
  text-align:left;
  background:transparent;
  color:#aebbc1;
  margin-bottom:8px;
  font-size:13px;
  padding:13px
}

.nav.active {
  background:#364044;
  color:white;
  border-left:3px solid var(--orange);
  border-radius:5px
}

.nav span {
  color:var(--orange)
}

.sidebar-bottom {
  margin-top:auto;
  font-size:11px;
  padding:40px 10px 0;
  color:#8f9da4
}

.sidebar-bottom p {
  color:#e1e6e8;
  margin:20px 0 5px;
  font-size:13px
}

.sidebar-bottom .text-button {
  font-size:12px;
  color:#a3b0b5
}

.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#75a694;
  margin-right:6px
}

.main-content {
  padding:37px 40px;
  min-width:0
}

header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:32px
}

header .eyebrow {
  margin-bottom:10px
}

header .secondary {
  font-size:12px
}

.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  font-size:13px;
  color:#728088
}

.toolbar p {
  margin:0
}

.filter {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:400
}

.filter select {
  width:175px;
  margin:0;
  padding:8px;
  font-size:12px
}

.case-layout {
  display:grid;
  grid-template-columns:minmax(230px,32%) minmax(0,1fr);
  background:white;
  border:1px solid var(--line);
  border-radius:11px;
  min-height:650px;
  overflow:hidden
}

.case-list {
  border-right:1px solid var(--line);
  padding:10px;
  max-height:75vh;
  overflow:auto
}

.case-row {
  display:block;
  width:100%;
  text-align:left;
  padding:17px 14px;
  background:white;
  border-radius:7px;
  margin-bottom:3px;
  border:1px solid transparent
}

.case-row:hover {
  background:#fafafa
}

.case-row.selected {
  background:#fff7f0;
  border-color:#f6d9c9
}

.case-row strong {
  display:block;
  font-size:13px;
  margin:10px 0 7px;
  line-height:1.5;
  overflow-wrap:anywhere
}

.case-meta {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#95a0a5
}

.case-owner {
  color:#8b959b;
  font-size:11px;
  font-weight:400
}

.badge {
  display:inline-block;
  font-size:10px;
  padding:5px 8px;
  background:#f0f3f5;
  color:#64747d;
  border-radius:5px;
  font-weight:500
}

.badge.waiting {
  background:#fff0db;
  color:#986923
}

.badge.assigned {
  background:#eaf2ff;
  color:#416ea6
}

.badge.closed {
  background:#edf4ef;
  color:#64816c
}

.conversation {
  min-width:0
}

.empty {
  display:flex;
  min-height:580px;
  padding:35px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center
}

.empty-icon {
  font-size:30px;
  color:#c9d1d5;
  margin-bottom:22px
}

.empty h2 {
  font-size:18px;
  margin-bottom:10px
}

.empty p {
  font-size:13px;
  color:#929da3;
  line-height:1.8
}

.conversation-header {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:26px 28px 14px;
  border-bottom:1px solid var(--line)
}

.conversation-header h2 {
  font-size:18px;
  margin:9px 0;
  overflow-wrap:anywhere
}

.conversation-header .muted {
  font-size:12px;
  margin:0
}

.conversation-header .badge {
  align-self:flex-start
}

.case-actions {
  padding:10px 28px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap
}

.case-actions>div {
  display:flex;
  align-items:end;
  gap:10px
}

.case-actions select {
  padding:6px;
  margin-top:4px;
  max-width:180px
}

.case-actions button {
  font-size:11px;
  padding:8px
}

.messages {
  padding:24px 28px;
  max-height:420px;
  min-height:230px;
  overflow:auto;
  background:#fcfcfd
}

.message {
  max-width:85%;
  padding:13px 16px;
  margin-bottom:16px;
  border-radius:10px;
  background:#f0f2f4;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:13px;
  line-height:1.65
}

.message.staff {
  margin-left:auto;
  background:#fff0e5
}

.message.note {
  background:#fff7d8;
  border:1px dashed #e5d594
}

.message-meta {
  display:block;
  margin-bottom:6px;
  color:#89969e;
  font-size:10px
}

.delivery {
  display:block;
  font-size:10px;
  color:#8c989f;
  margin-top:6px
}

.reply-form {
  padding:20px 28px;
  border-top:1px solid var(--line)
}

.reply-form textarea {
  resize:vertical;
  line-height:1.6;
  font-size:13px
}

.reply-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:12px
}

.checkbox {
  font-weight:400;
  color:#7c898f;
  font-size:11px;
  display:flex;
  align-items:center;
  gap:6px
}

.checkbox input {
  width:auto;
  margin:0
}

.reply-form .small {
  margin:10px 0 0
}

.account-card {
  max-width:580px;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:32px
}

.account-card hr {
  border:0;
  border-top:1px solid var(--line);
  margin:25px 0
}

.account-card input {
  max-width:210px
}

.account-card a {
  display:block;
  color:#d95118;
  font-size:13px;
  margin:25px 0
}

.button-row {
  display:flex;
  gap:10px;
  margin-top:15px;
  flex-wrap:wrap
}

@media(max-width:1050px) {
  .intro {
    padding:40px
  }
  .intro-copy h1 {
    font-size:35px
  }
  .main-content {
    padding:25px
  }
  .workspace {
    grid-template-columns:180px 1fr
  }
  .sidebar {
    padding:25px 12px
  }
  .case-layout {
    grid-template-columns:220px minmax(0,1fr)
  }
}

@media(max-width:760px) {
  .auth-screen {
    grid-template-columns:1fr
  }
  .intro {
    min-height:170px;
    padding:25px
  }
  .intro-copy,.intro-bottom {
    display:none
  }
  .auth-panel {
    padding:40px 25px
  }
  .workspace {
    display:block
  }
  .sidebar {
    padding:14px 18px;
    flex-direction:row;
    gap:10px;
    align-items:center
  }
  .sidebar .brand {
    font-size:23px;
    margin:0 15px 0 0
  }
  .sidebar .brand span,.sidebar-label,.sidebar-bottom .live-dot,.sidebar-bottom>p {
    display:none
  }
  .sidebar-bottom {
    margin:0 0 0 auto;
    padding:0;
    font-size:0
  }
  .nav {
    width:auto;
    margin:0;
    font-size:11px;
    padding:9px
  }
  .sidebar-bottom .text-button {
    font-size:11px
  }
  .main-content {
    padding:24px 16px
  }
  h1 {
    font-size:25px
  }
  .toolbar {
    align-items:flex-start;
    gap:15px;
    flex-direction:column
  }
  .case-layout {
    grid-template-columns:1fr;
    min-height:400px
  }
  .case-list {
    max-height:230px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .empty {
    min-height:300px
  }
  .conversation-header,.case-actions,.messages,.reply-form {
    padding-left:18px;
    padding-right:18px
  }
  .reply-bottom {
    align-items:flex-start;
    flex-direction:column;
    gap:15px
  }
  .message {
    max-width:95%
  }
  .account-card {
    padding:22px
  }
  .setup-screen {
    padding:15px
  }
}
