:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #182235;
  background: #f5f7fb;
  font-size: 14px;
  --blue: #4f78f6;
  --muted: #5c6b80;
  --border: #e0e6f0;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.error:empty {
  display: none;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #263c61;
  padding: 10px 16px;
  font-weight: 600;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #f0f4ff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #4268e8;
}
.danger {
  color: #b4233c;
}
.ghost {
  border: 0;
  background: transparent;
}
.muted {
  color: var(--muted);
}
.error {
  color: #b4233c;
  background: #fff2f4;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}
.hint {
  color: var(--muted);
  line-height: 1.6;
}
.boot {
  padding: 50px;
  text-align: center;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
a {
  color: #315ed8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  min-width: 0;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  border-color: #aabcfb;
  box-shadow: 0 6px 20px #18396a09;
}
.badge {
  display: inline-block;
  background: #edf2ff;
  color: #355ac8;
  border: 1px solid #dce5ff;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.badge.green {
  background: #eaf8f0;
  color: #217148;
  border-color: #c5e8d4;
}
.badge.warn {
  background: #fff6e7;
  color: #956317;
  border-color: #f1deba;
}
.badge.gray {
  background: #f1f3f6;
  color: #5c6b80;
  border-color: #e2e7ef;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7f8ea5;
  font-weight: 700;
}
.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 40% 60%;
  background: white;
}
.brand {
  background: #183e6c;
  color: white;
  padding: clamp(30px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.brand h1 {
  font-size: 40px;
  color: white;
}
.brand p {
  color: #c5d8f2;
  line-height: 1.7;
}
.brand-logo {
  width: 190px;
  max-width: 80%;
  padding: 18px;
  border-radius: 22px;
  background: white;
  align-self: center;
}
.brand-bottom {
  font-size: 32px;
  line-height: 1.35;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 450px;
}
.login-tabs {
  margin: 24px 0;
  gap: 6px;
}
.login-tabs button {
  font-size: 13px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  color: #44546b;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d2dced;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: #182235;
  min-height: 43px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 2px solid #4f78f61c;
}
textarea {
  min-height: 105px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--blue);
}
.qr {
  width: 230px;
  height: 230px;
  display: block;
  margin: auto;
}
.secret {
  font-family: monospace;
  overflow-wrap: anywhere;
  background: #f1f4f9;
  padding: 12px;
  border-radius: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 24px;
}
.wordmark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.wordmark strong {
  font-size: 21px;
  letter-spacing: -0.4px;
}
.wordmark small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.nav-group {
  margin-bottom: 13px;
}
.nav-heading {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 10px;
  color: #8190a7;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  font-weight: 400;
  margin-bottom: 3px;
}
.nav-item.active {
  color: #315ee4;
  background: #edf2ff;
  font-weight: 600;
}
.nav-item .icon {
  color: #5979ec;
}
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 16px 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.main {
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #ffffffdc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e8eeff;
  color: #365cd0;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.workspace {
  padding: 30px 32px;
  max-width: 1800px;
  margin: auto;
}
.page-head {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.toolbar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  width: auto;
  max-width: 260px;
}
.metric strong {
  font-size: 30px;
  display: block;
  margin: 12px 0 4px;
  letter-spacing: -1px;
}
.metric p {
  margin: 0;
  color: var(--muted);
}
.section {
  margin-top: 26px;
}
.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #d0d9e9;
  border-radius: 14px;
  background: #ffffff80;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #eaf0f7;
  vertical-align: top;
}
th {
  background: #f8fafd;
  color: #66758b;
  font-size: 12px;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}
td button {
  font-size: 12px;
  padding: 6px 10px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(235px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 10px;
}
.column {
  background: #edf1f7;
  border-radius: 13px;
  padding: 13px;
  min-height: 220px;
}
.column h3 {
  display: flex;
  justify-content: space-between;
  color: #52647c;
  font-size: 13px;
}
.task {
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
}
.task h3 {
  color: #182235;
  font-size: 14px;
  line-height: 1.5;
}
.task p {
  font-size: 12px;
  margin: 9px 0;
  color: var(--muted);
}
.task small {
  color: #5e7190;
}
.progress {
  height: 7px;
  background: #edf1f7;
  border-radius: 5px;
  overflow: hidden;
  margin: 13px 0;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
}
.detail-list {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.text {
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: #182235;
  box-shadow: 0 30px 100px #10234526;
}
dialog::backdrop {
  background: #12203766;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 23px 27px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-body {
  padding: 24px 27px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--border);
  background: #fff;
  position: sticky;
  bottom: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.chat {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  min-height: 570px;
}
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
#notification-popups {
  position: fixed;
  right: 22px;
  bottom: 100px;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.notice-popup {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  box-shadow: 0 12px 36px #18223525;
  padding: 18px;
  border-radius: 14px;
  animation: notice-in 160ms ease-out;
}
.notice-popup .row strong {
  flex: 1;
}
.notice-popup p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
}
.notice-popup .row button {
  padding: 3px 8px;
}
.notice-list {
  display: grid;
  gap: 12px;
}
.notice-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.notice-row.unread {
  background: #f1f5ff;
  border-left: 3px solid var(--blue);
}
.bubble-check {
  padding: 10px 14px;
  border: 1px solid #cdd9f4;
  background: #f1f5ff;
  color: #3156b0;
  border-radius: 12px;
  transition: background 150ms;
}
.bubble-check:hover {
  background: #e8efff;
}
.bubble-check input {
  accent-color: var(--blue);
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-full {
  height: calc(100vh - 250px);
  min-height: 550px;
  grid-template-columns: 300px minmax(0, 1fr);
}
.chat-full .chat-list {
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-full .chat-list > .row {
  flex-wrap: nowrap;
}
.chat-full .chat-list select {
  min-width: 0;
}
.chat-room-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.chat-full .conversation {
  min-height: 0;
}
.chat-full .messages {
  max-height: none;
  min-height: 140px;
}
.chat-full .conversation > p,
.chat-full .conversation > .row {
  margin: 0;
  padding: 4px 16px;
}
.chat-full .conversation > p:empty {
  display: none;
}
.chat-full .conversation-head {
  padding: 14px 18px;
}
.chat-full .conversation-head .row {
  justify-content: space-between;
  margin-bottom: 10px;
}
.chat-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e1fb;
  border-radius: 12px;
  background: #edf2ff;
  color: #4268e8;
  font-size: 12px;
  font-weight: 700;
}
.chat-room > .row {
  flex-wrap: nowrap;
  gap: 10px;
}
.room-text {
  flex: 1;
  min-width: 0;
}
.room-text strong,
.room-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.chat-topics {
  display: flex;
  gap: 6px;
  padding: 10px 15px;
  overflow-x: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.topic-tab {
  white-space: nowrap;
  border: 0;
  background: #f5f7fb;
  padding: 8px 12px;
}
.topic-tab.active {
  background: #edf2ff;
  color: #3156b0;
  box-shadow: inset 0 -2px #4f78f6;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(36px, 1fr));
  gap: 8px;
}
.emoji-button {
  padding: 12px;
  font-size: 24px;
}
.reaction-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reaction {
  border: 1px solid var(--border);
  background: #f8faff;
  border-radius: 15px;
  font-size: 13px;
  padding: 3px 9px;
  min-height: 28px;
}
.reaction.own {
  background: #dfe9ff;
  border-color: #7394e8;
}
.add-reaction {
  opacity: 0.7;
}
.message-read {
  margin-left: auto;
}
.message-target {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.chat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px;
}
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  background: #edf2ff;
  border-radius: 10px;
  font-size: 12px;
}
.attachment-chip button {
  padding: 3px 6px;
}
.member-choices {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 6px;
}
.member-choice,
.member-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.member-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.member-row strong {
  flex: 1;
}
.member-choice:hover {
  background: #f4f7ff;
}
@media (max-width: 800px) {
  .chat-full {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-full .chat-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .chat-full .conversation {
    height: 650px;
  }
  .chat-full .composer {
    flex-wrap: wrap;
  }
  .chat-full .composer textarea {
    flex-basis: 100%;
    order: -1;
  }
  .chat-full .message {
    max-width: 94%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice-popup {
    animation: none;
  }
}
.chat-list {
  border-right: 1px solid var(--border);
  padding: 14px;
  max-height: 75vh;
  overflow: auto;
}
.chat-room {
  width: 100%;
  text-align: left;
  border: 0;
  margin: 3px 0;
  padding: 13px;
}
.chat-room small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.chat-room.active {
  background: #edf2ff;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-height: 570px;
  min-width: 0;
}
.conversation-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.messages {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  max-height: 53vh;
  flex: 1;
  background: #f8faff;
}
.message {
  align-self: flex-start;
  max-width: 83%;
  border-radius: 12px 12px 12px 3px;
  border: 1px solid var(--border);
  background: white;
  padding: 12px 15px;
}
.message.mine {
  align-self: flex-end;
  background: #edf2ff;
  border-color: #dce5ff;
  border-radius: 12px 12px 3px 12px;
}
.message small {
  display: block;
  color: #6b7e99;
  font-size: 11px;
  margin-top: 7px;
}
.message p {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer {
  padding: 15px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.composer textarea {
  min-height: 50px;
  max-height: 160px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  background: var(--border);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}
.calendar-day {
  min-height: 125px;
  padding: 10px;
  background: #fff;
}
.calendar-day.outside {
  background: #f5f7fb;
  color: #9ba5b6;
}
.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.calendar-day strong {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
}
.event {
  display: block;
  border: 0;
  background: #edf2ff;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  width: 100%;
  font-size: 11px;
  text-align: left;
  padding: 5px 7px;
  margin: 4px 0;
  overflow: hidden;
}
.calendar-label {
  padding: 10px;
  text-align: center;
  background: #f7f9fd;
  color: var(--muted);
  font-size: 12px;
}
.news-cover {
  max-width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 10px;
}
.news-card h2 {
  line-height: 1.4;
}
.news-card p {
  line-height: 1.65;
  color: #54647a;
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 160px minmax(60px, 1fr) 65px;
  gap: 13px;
  align-items: center;
}
.graph-host {
  overflow: auto;
  max-height: 65vh;
  min-height: 350px;
  background-color: #fbfcff;
  background-image:
    linear-gradient(#e8edf5 1px, transparent 1px),
    linear-gradient(90deg, #e8edf5 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.graph-node {
  cursor: pointer;
}
.graph-node rect {
  fill: white;
  stroke: #bdcbe4;
  stroke-width: 1.4;
}
.graph-node.done rect {
  fill: #edf9f1;
  stroke: #51a376;
}
.graph-node.blocked rect {
  fill: #f4f0ff;
  stroke: #a28ac9;
  stroke-dasharray: 5 3;
}
.graph-node text {
  font:
    12px "Segoe UI",
    sans-serif;
  fill: #263c61;
}
.graph-edge {
  fill: none;
  stroke: #9aabc5;
  stroke-width: 1.2;
}
.office-room {
  position: relative;
  overflow: auto;
  background: #f7f9fd;
  border: 2px solid #cbd5e5;
  border-radius: 12px;
  padding: 20px;
}
.seat {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  background: white;
  border: 1px solid #cbd5e5;
  border-radius: 8px;
  padding: 14px;
  min-width: 100px;
  margin: 7px;
  font-size: 12px;
}
.avatar.large {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
#toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.toast {
  background: #183e6c;
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px #1a31532a;
  line-height: 1.5;
}
.mobile-menu {
  display: none;
}
.mail-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
}
.mail-folders button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  text-align: left;
}
.nowrap {
  white-space: nowrap;
}
.recover {
  background: #f5f7fb;
  padding: 14px;
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: monospace;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs button.active {
  background: #edf2ff;
  color: #315ed8;
  border-color: #ccd9ff;
}
.notice {
  border-left: 3px solid var(--blue);
  background: #eef3ff;
  padding: 14px 18px;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workspace {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .bar-row {
    grid-template-columns: 120px 1fr 55px;
  }
  .calendar-day {
    min-height: 100px;
    padding: 6px;
  }
  .brand {
    padding: 35px;
  }
  .brand-bottom {
    font-size: 25px;
  }
}
@media (max-width: 720px) {
  .login {
    grid-template-columns: 1fr;
  }
  .brand {
    min-height: 180px;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding: 25px;
  }
  .brand h1 {
    font-size: 28px;
  }
  .brand-logo {
    width: 85px;
    border-radius: 12px;
    padding: 8px;
  }
  .brand-bottom {
    display: none;
  }
  .login-main {
    padding: 30px 22px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 240px;
    z-index: 20;
    transition: left 0.16s;
    box-shadow: 10px 0 40px #14243b16;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 14px;
  }
  .topbar .user-name {
    display: none;
  }
  .workspace {
    padding: 23px 15px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .chat {
    grid-template-columns: 1fr;
  }
  .chat-list {
    max-height: 160px;
    border-bottom: 1px solid var(--border);
  }
  .calendar {
    grid-template-columns: repeat(7, minmax(85px, 1fr));
    min-width: 620px;
  }
  .calendar-wrap {
    overflow: auto;
  }
  .mail-layout {
    grid-template-columns: 1fr;
  }
  .mail-folders {
    display: flex;
    overflow: auto;
    gap: 7px;
  }
  .mail-folders button {
    white-space: nowrap;
    width: auto;
  }
  .detail-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .detail-list dd {
    margin-bottom: 12px;
  }
  dialog {
    width: calc(100% - 20px);
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 20px;
  }
  .bar-row {
    grid-template-columns: 110px minmax(50px, 1fr) 50px;
  }
  .toolbar input {
    max-width: none;
  }
  .board {
    grid-template-columns: repeat(4, 260px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.office-map {
  width: 100%;
  max-height: 65vh;
  min-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f6f8fc;
}
.office-map svg {
  display: block;
  min-width: 100%;
  font-family: "Segoe UI", sans-serif;
}
.office-map [role="button"] {
  cursor: pointer;
}
.office-map [role="button"]:focus {
  outline: 3px solid #4f78f6;
  outline-offset: 3px;
}
.brand-bottom p {
  font-size: 16px;
  margin-top: 16px;
}
.editor-tabs {
  position: relative;
  background: var(--surface, #fff);
  padding-bottom: 12px;
}
.editor-tabs button {
  flex-shrink: 0;
}
[role="tabpanel"] {
  padding: 12px 0;
}
.signed-bar {
  position: relative;
  height: 12px;
  background: #edf1fa;
  border-radius: 6px;
  overflow: hidden;
}
.signed-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  width: 1px;
  background: #8795b8;
}
.signed-bar i {
  position: absolute;
  height: 100%;
  background: var(--primary, #4f78f6);
  border-radius: 4px;
}
.signed-bar i.negative {
  background: #df6475;
}
.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 23px;
  width: 65px;
  height: 65px;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 35;
  isolation: isolate;
}
.assistant-orb {
  position: absolute;
  inset: 7px;
  background: radial-gradient(circle at 30% 25%, #eee9ff, #bba7ef 55%, #8871ce);
  border: 1px solid #d9cdf7;
  border-radius: 46% 54% 55% 45%;
  box-shadow: 0 6px 20px #67548e26;
  animation: assistant-matter 7s ease-in-out infinite alternate;
}
.assistant-orb-label {
  position: relative;
  color: #48346f;
  font-weight: 700;
  font-size: 14px;
}
@keyframes assistant-matter {
  0% {
    transform: translate(-3px, 2px) rotate(-12deg);
    border-radius: 46% 54% 55% 45%;
  }
  45% {
    transform: translate(4px, -4px) rotate(12deg);
    border-radius: 58% 42% 43% 57%;
  }
  100% {
    transform: translate(-2px, -1px) rotate(-8deg);
    border-radius: 42% 58% 60% 40%;
  }
}
.assistant-widget {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 130px));
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 50px #18223526;
  z-index: 40;
}
.assistant-widget > .row {
  justify-content: space-between;
}
.assistant-widget textarea {
  width: 100%;
  box-sizing: border-box;
}
.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 55vh;
  min-height: 100px;
  overflow: auto;
  padding: 5px;
}
.assistant-widget .assistant-messages {
  max-height: 32vh;
}
.assistant-messages .message {
  max-width: 100%;
}
.assistant-messages blockquote {
  margin: 10px;
  font-size: 13px;
  color: var(--muted, #5c6b80);
}
@media (prefers-reduced-motion: reduce) {
  .assistant-orb {
    animation: none;
  }
}
@media (max-width: 720px) {
  .assistant-launcher {
    right: 12px;
    bottom: 12px;
  }
  .assistant-widget {
    right: 14px;
    bottom: 87px;
  }
}
@media (max-width: 720px) {
  .topbar .row {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .topbar > .row:first-child > .muted {
    display: none;
  }
  .topbar .row button {
    font-size: 12px;
    padding: 8px;
  }
  .topbar a {
    font-size: 11px;
    max-width: 86px;
    overflow-wrap: anywhere;
  }
  .topbar {
    justify-content: space-between;
  }
}
