:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  color: #191f28;
  background: #fff;
  font-synthesis: none;
  --blue: #3182f6;
  --blue-soft: #e8f3ff;
  --gray: #8b95a1;
  --line: #f0f2f4;
  --ink: #191f28;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
input,
textarea,
select {
  color: var(--ink);
}
a {
  color: #2272eb;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #96c6ff;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #91bfff;
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.small-icon {
  width: 15px;
  height: 15px;
}
.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #f9fafb;
  border-right: 1px solid #f0f2f4;
  padding: 31px 18px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 20;
}
.sidebar > * {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  text-decoration: none;
  color: #191f28;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #3182f6;
  color: #fff;
}
.brand-mark .icon {
  width: 21px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 27px 0 20px;
  padding: 11px 13px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #4e5968;
  border-radius: 10px;
}
.workspace-label:hover {
  background: #f0f2f4;
}
.workspace-label > .small-icon {
  margin-left: auto;
  color: #b0b8c1;
}
.company-initial {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #e5e8eb;
  border-radius: 8px;
  color: #6b7684;
  font-size: 11px;
}
.compose-button {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  background: #3182f6;
  color: #fff;
  height: 49px;
  padding: 0 16px;
  font-weight: 650;
  font-size: 14px;
}
.compose-button:hover,
.primary-button:hover {
  background: #1b64da;
}
.key-hint {
  margin-left: auto;
  color: #b7d6ff;
  font-size: 11px;
  font-weight: 400;
}
.nav-heading {
  font-size: 11px;
  font-weight: 550;
  color: #b0b8c1;
  margin: 28px 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #6b7684;
}
.nav-item:hover {
  background: #f0f2f4;
}
.nav-item.active {
  background: #e8f3ff;
  color: #1b64da;
  font-weight: 650;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
  color: #8b95a1;
}
.nav-item.active .icon {
  color: #3182f6;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  color: #3182f6;
}
.nav-item > .small-icon {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: #c0c6ce;
}
.nav-divider {
  height: 1px;
  background: #e8ebee;
  margin: 19px 13px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.connection-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 23px;
  color: #b0b8c1;
}
.connection-card strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #8b95a1;
}
.connection-card p {
  font-size: 9px;
  margin: 6px 0 0;
  color: #b0b8c1;
}
.connection-card > .icon {
  width: 20px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8cdd3;
  margin-left: auto;
}
.status-dot.live {
  background: #30b67d;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 11px;
  border-top: 1px solid #e8ebee;
  width: 100%;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f6;
  color: #8b95a1;
}
.account-avatar {
  background: #e8f3ff;
  color: #3182f6;
}
.account-button > span:nth-child(2) {
  min-width: 0;
}
.account-button strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4e5968;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 124px;
}
.account-button small {
  display: block;
  font-size: 10px;
  color: #8b95a1;
  margin-top: 5px;
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-button > .icon {
  margin-left: auto;
  color: #b0b8c1;
}
.main {
  grid-column: 2;
  min-width: 0;
  padding: 0 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 86px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.breadcrumb {
  white-space: nowrap;
  min-width: 80px;
}
.breadcrumb strong {
  font-size: 13px;
  color: #6b7684;
  font-weight: 550;
}
.search-box {
  margin: 0 auto 0 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  width: 100%;
  background: #f2f4f6;
  border-radius: 12px;
  padding: 0 14px;
  color: #8b95a1;
}
.search-box > .icon {
  width: 17px;
  height: 17px;
}
.search-box input {
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  font-size: 13px;
  background: transparent;
  outline: none;
}
.search-box input::placeholder {
  color: #b0b8c1;
}
.search-box kbd {
  font-family: inherit;
  font-size: 11px;
  color: #b0b8c1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  margin-left: auto;
}
.mode-badge {
  font-size: 11px;
  background: #f2f4f6;
  color: #8b95a1;
  padding: 6px 9px;
  border-radius: 7px;
}
.mode-badge.live {
  color: #218659;
  background: #e8f8ee;
}
.connect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e8f3ff;
  color: #2272eb;
  font-size: 12px;
  font-weight: 650;
}
.connect-button > .icon {
  width: 14px;
  height: 14px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0 27px;
  flex-shrink: 0;
}
h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.4;
}
.page-description {
  font-size: 13px;
  color: #8b95a1;
  margin: 8px 0 0;
  line-height: 1.7;
}
.header-date {
  font-size: 11px;
  color: #b0b8c1;
  align-self: flex-end;
  margin-bottom: 5px;
}
.eyebrow,
.title-dot {
  display: none;
}
.mail-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 41%) minmax(0, 1fr);
  border: 1px solid #e8ebee;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-height: 540px;
  height: calc(100vh - 262px);
}
.mail-list-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eef0f2;
  min-width: 0;
}
.list-toolbar {
  height: 65px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.filter-tabs {
  display: flex;
  gap: 24px;
  height: 100%;
  align-items: center;
}
.filter-tab {
  height: 100%;
  padding: 0;
  font-size: 13px;
  color: #8b95a1;
  position: relative;
  white-space: nowrap;
}
.filter-tab.active {
  color: #191f28;
  font-weight: 700;
}
.filter-tab.active:after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #191f28;
}
.filter-tab span {
  font-size: 11px;
  margin-left: 6px;
  color: #b0b8c1;
  font-weight: 500;
}
.filter-tab.active span {
  color: #3182f6;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #8b95a1;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #f2f4f6;
  color: #4e5968;
}
.icon-button > .icon {
  width: 18px;
  height: 18px;
}
.list-notice {
  font-size: 10px;
  line-height: 1.7;
  color: #6b93c1;
  background: #f5f9ff;
  padding: 11px 19px;
  flex-shrink: 0;
}
.mini-dot {
  display: none;
}
.message-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e8eb transparent;
}
.mail-row {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 115px;
  padding: 23px 20px;
  border-bottom: 1px solid #f2f4f6;
  cursor: pointer;
  outline-offset: -3px !important;
}
.mail-row:hover {
  background: #f9fafb;
}
.mail-row.selected {
  background: #f2f7ff;
}
.mail-row-content {
  min-width: 0;
  flex: 1;
}
.mail-avatar {
  width: 33px;
  height: 33px;
  border-radius: 12px;
  font-size: 11px;
  margin-top: 1px;
}
.tone-0 {
  background: #e8f0fb;
  color: #7899c2;
}
.tone-1 {
  background: #eef2f5;
  color: #7f99aa;
}
.tone-2 {
  background: #f4eeea;
  color: #af988a;
}
.tone-3 {
  background: #edf3ee;
  color: #8aab92;
}
.tone-4 {
  background: #eeeff8;
  color: #959bc0;
}
.mail-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 19px;
}
.sender-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6b7684;
}
.unread .sender-name {
  color: #333d4b;
  font-weight: 650;
}
.department-tag {
  font-size: 9px;
  color: #a1aab4;
  white-space: nowrap;
}
.mail-time {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #b0b8c1;
}
.mail-row-subject {
  font-size: 13px;
  font-weight: 500;
  color: #4e5968;
  margin: 9px 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.unread .mail-row-subject {
  color: #191f28;
  font-weight: 650;
}
.unread-dot {
  width: 5px;
  height: 5px;
  background: #3182f6;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 3px;
}
.mail-snippet {
  font-size: 12px;
  color: #b0b8c1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.6;
  margin: 0;
  padding-right: 16px;
}
.row-star {
  position: absolute;
  right: 15px;
  bottom: 16px;
  color: #d1d6db;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.row-star .icon {
  width: 14px;
  height: 14px;
}
.row-star.starred,
.row-starred {
  color: #e9b850;
}
.row-star.starred .icon,
.row-starred .icon {
  fill: #ffe49c;
  stroke: #e8b74d;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 10px;
  color: #b0b8c1;
  min-height: 43px;
  flex-shrink: 0;
}
.text-button {
  font-size: 12px;
  color: #6b7684;
  padding: 9px 10px;
  border-radius: 8px;
}
.text-button:hover {
  background: #f2f4f6;
}
.pagination .text-button {
  font-size: 10px;
}
.reader {
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e8eb transparent;
}
.reader-toolbar {
  position: sticky;
  top: 0;
  background: #ffffffed;
  backdrop-filter: blur(8px);
  z-index: 2;
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}
.reader-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reader-toolbar small {
  font-size: 10px;
  color: #b0b8c1;
}
.reader-content {
  padding: 32px;
}
.reader-category {
  display: inline-block;
  color: #8b95a1;
  font-size: 11px;
  margin-bottom: 13px;
}
.reader h2 {
  font-size: 23px;
  line-height: 1.6;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0 0 26px;
  overflow-wrap: anywhere;
}
.reader-sender {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  flex-wrap: wrap;
}
.reader-sender-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.reader-sender-name small {
  font-size: 11px;
  font-weight: 400;
  color: #8b95a1;
  margin-left: 6px;
}
.reader-recipient {
  font-size: 11px;
  color: #8b95a1;
  line-height: 1.7;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.reader-date {
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
  padding-top: 3px;
  font-size: 10px;
  color: #b0b8c1;
}
.message-body {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.95;
  color: #4e5968;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 28px 0;
  min-height: 180px;
}
.message-html {
  white-space: normal;
}
.message-html pre {
  white-space: pre-wrap;
}
.message-html table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.message-html td,
.message-html th {
  border: 1px solid #e5e8eb;
  padding: 7px 10px;
}
.message-html blockquote {
  margin-left: 0;
  border-left: 3px solid #d1d6db;
  padding-left: 15px;
}
.html-note {
  font-size: 10px;
  color: #b0b8c1;
}
.reply-actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f2f4f6;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #4e5968;
  border: 0;
  min-height: 40px;
}
.secondary-button:hover {
  background: #e5e8eb;
}
.secondary-button .icon {
  width: 16px;
  height: 16px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3182f6;
  border-radius: 10px;
  padding: 12px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  min-height: 43px;
}
.primary-button .icon {
  width: 17px;
  height: 17px;
}
.full-width {
  width: 100%;
}
.reader-placeholder,
.empty-list {
  text-align: center;
  padding: 60px 25px;
  color: #8b95a1;
}
.reader-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 350px;
}
.empty-envelope {
  display: grid;
  place-items: center;
  background: #f2f4f6;
  border-radius: 24px;
  color: #b0b8c1;
  width: 76px;
  height: 76px;
}
.empty-envelope .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}
.reader-placeholder h2,
.empty-list h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #6b7684;
  margin: 24px 0 9px;
}
.reader-placeholder p,
.empty-list p {
  font-size: 12px;
  color: #b0b8c1;
  line-height: 1.8;
  margin: 0;
}
.empty-list > .icon {
  width: 31px;
  height: 31px;
  color: #c5cbd2;
}
.empty-list .primary-button {
  margin-top: 22px;
}
.mobile-back,
.menu-button {
  display: none;
}
.contacts-view,
.management-view {
  border: 1px solid #e8ebee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 500px;
  flex: 1;
}
.contacts-toolbar,
.management-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 21px 25px;
  gap: 15px;
}
.contacts-toolbar > p,
.management-toolbar > p {
  font-size: 13px;
  color: #8b95a1;
  margin: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 20px 25px;
}
.contact-meta {
  min-width: 0;
  width: 170px;
}
.contact-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.contact-meta small {
  display: block;
  color: #8b95a1;
  font-size: 11px;
  margin-top: 6px;
}
.contact-email {
  font-size: 13px;
  color: #8b95a1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.directory-badge {
  font-size: 10px;
  color: #8b95a1;
  margin-left: 8px;
  font-weight: 400;
}
.data-table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  color: #8b95a1;
  font-size: 11px;
  font-weight: 500;
  background: #f9fafb;
  padding: 15px 24px;
}
.data-table td {
  padding: 22px 24px;
  font-size: 13px;
  color: #4e5968;
  border-bottom: 1px solid var(--line);
}
.table-person strong {
  display: block;
  font-weight: 600;
  color: #333d4b;
}
.table-person small {
  display: block;
  font-size: 11px;
  color: #8b95a1;
  margin-top: 7px;
}
.status-pill {
  display: inline-block;
  font-size: 11px;
  color: #3182f6;
  background: #e8f3ff;
  padding: 5px 8px;
  border-radius: 6px;
}
.status-pill.inactive {
  background: #f2f4f6;
  color: #8b95a1;
}
.table-actions {
  display: flex;
  gap: 9px;
}
.company-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 16px 12px;
  border-radius: 11px;
}
.company-option:hover {
  background: #f2f4f6;
}
.company-option strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.company-option small {
  display: block;
  font-size: 11px;
  color: #8b95a1;
  margin-top: 5px;
}
.company-option > .icon {
  color: #3182f6;
  margin-left: auto;
}
.management-note {
  padding: 18px 25px;
  font-size: 12px;
  line-height: 1.8;
  color: #8b95a1;
  background: #f9fafb;
}
.dialog {
  border: 0;
  border-radius: 24px;
  width: min(490px, calc(100% - 32px));
  padding: 32px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  box-shadow: 0 12px 50px #191f2826;
  color: #191f28;
}
.dialog::backdrop {
  background: #0b17294d;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}
.dialog h2 {
  font-size: 23px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.7px;
  margin: 0;
}
.dialog-description {
  font-size: 13px;
  line-height: 1.8;
  color: #8b95a1;
  margin: 10px 0 25px;
}
.modal-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #e8f3ff;
  border-radius: 15px;
  color: #3182f6;
}
.modal-symbol .icon {
  width: 27px;
  height: 27px;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7684;
  margin: 20px 0;
}
.field input,
.field select {
  display: block;
  width: 100%;
  border: 1px solid #e5e8eb;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-top: 9px;
  font-size: 14px;
  min-height: 48px;
}
.field input::placeholder {
  color: #b0b8c1;
}
.field-hint {
  display: block;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 400;
  color: #8b95a1;
  margin-top: 8px;
}
.optional {
  color: #b0b8c1;
  margin-left: 5px;
  font-size: 10px;
}
.connection-details {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b95a1;
  font-size: 11px;
  line-height: 1.8;
  padding: 8px 0 18px;
}
.connection-details > .icon {
  width: 15px;
  height: 15px;
}
.form-error {
  font-size: 12px;
  color: #f04452;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.logout-button {
  display: block;
  margin: 15px auto 0;
}
.compose-dialog {
  width: min(820px, calc(100% - 32px));
  padding: 0;
}
.compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
}
.compose-header h2 {
  font-size: 21px;
}
.compose-fields {
  padding: 0 30px;
}
.compose-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
}
.compose-line label {
  color: #8b95a1;
  font-size: 12px;
  width: 75px;
  flex-shrink: 0;
}
.compose-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 17px 0;
  font-size: 13px;
  outline: none;
}
.compose-line input::placeholder {
  color: #b0b8c1;
}
.compose-line .text-button {
  font-size: 11px;
  white-space: nowrap;
}
.compose-dialog textarea {
  display: block;
  width: 100%;
  height: 290px;
  min-height: 170px;
  max-height: 46vh;
  resize: vertical;
  border: 0;
  padding: 25px 30px;
  font-size: 14px;
  line-height: 1.9;
  outline: none;
}
.compose-dialog textarea::placeholder {
  color: #b0b8c1;
}
.compose-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 24px;
}
.compose-spacer {
  flex: 1;
}
.attachment-limit,
.draft-status {
  font-size: 11px;
  color: #b0b8c1;
}
.compose-mode-note {
  font-size: 11px;
  background: #f9fafb;
  color: #8b95a1;
  text-align: center;
  padding: 10px 22px;
}
.attachment-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 30px;
  max-height: 145px;
  overflow: auto;
}
.attachment-list:not(:empty) {
  padding-bottom: 16px;
}
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5e8eb;
  border-radius: 9px;
  padding: 9px 11px;
  color: #6b7684;
  text-decoration: none;
  font-size: 11px;
  max-width: 100%;
}
.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip .icon {
  width: 14px;
  height: 14px;
}
.attachment-chip small {
  font-size: 10px;
  color: #b0b8c1;
}
.attachment-chip button {
  display: grid;
  place-items: center;
  padding: 0;
}
.reader-attachments {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.compose-error {
  padding: 0 30px;
}
.confirm-dialog {
  width: min(490px, calc(100% - 32px));
}
.confirm-dialog h2 {
  font-size: 21px;
}
.confirm-dialog > p {
  font-size: 13px;
  line-height: 1.8;
  color: #8b95a1;
  margin: 15px 0 26px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.confirm-actions button {
  font-size: 11px;
  padding: 11px 13px;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: calc(50% + 118px);
  transform: translateX(-50%);
  background: #333d4bf2;
  color: #fff;
  border-radius: 13px;
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.8;
  max-width: min(650px, 90vw);
  box-shadow: 0 8px 25px #191f281a;
  z-index: 100;
}
.toast.error {
  background: #c33d4a;
}
.boot-error {
  position: fixed;
  inset: 35% 20% auto;
  z-index: 50;
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 18px;
  padding: 28px;
  color: #f04452;
  line-height: 1.8;
}
.loading-block {
  padding: 25px;
}
.loading-line {
  height: 13px;
  background: #f2f4f6;
  border-radius: 6px;
  margin: 15px 0;
  animation: pulse 1.5s infinite;
}
.loading-line:nth-child(2n) {
  width: 70%;
}
.busy .icon {
  animation: spin 1s linear infinite;
}
#profile-info {
  padding: 0 0 24px;
  color: #6b7684;
  font-size: 13px;
  line-height: 2;
}
#auth-logout {
  margin-top: 12px;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .mail-workspace {
    grid-template-columns: minmax(400px, 38%) minmax(0, 1fr);
  }
  .reader-content {
    padding: 38px 44px;
  }
  .message-body {
    font-size: 15px;
  }
  .mail-row-subject {
    font-size: 14px;
  }
  .mail-snippet {
    font-size: 13px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }
  .sidebar {
    width: 214px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .topbar {
    gap: 15px;
  }
  .breadcrumb {
    min-width: 60px;
  }
  .top-actions {
    gap: 8px;
  }
  .mail-workspace {
    grid-template-columns: minmax(285px, 44%) minmax(0, 1fr);
  }
  .reader-content {
    padding: 27px 24px;
  }
  .reader h2 {
    font-size: 20px;
  }
  .department-tag {
    display: none;
  }
  .reader-date {
    width: 100%;
    margin-left: 47px;
    padding-top: 0;
  }
  .mail-row {
    padding-left: 16px;
    padding-right: 16px;
    gap: 9px;
  }
  .toast {
    left: calc(50% + 107px);
  }
  .contact-meta {
    width: 115px;
  }
  .data-table td,
  .data-table th {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 900px) {
  .breadcrumb {
    display: none;
  }
  .mail-workspace {
    display: block;
    min-height: 490px;
  }
  .mail-list-pane {
    height: 100%;
    border: 0;
  }
  .reader {
    height: 100%;
    display: none;
  }
  .mail-workspace.reading .reader {
    display: block;
  }
  .mail-workspace.reading .mail-list-pane {
    display: none;
  }
  .mobile-back {
    display: inline-flex;
  }
  .header-date {
    display: none;
  }
  .reader-content {
    padding: 29px;
  }
  .mail-row {
    padding: 22px;
    min-height: 115px;
  }
  .department-tag {
    display: inline;
  }
  .reader-date {
    width: auto;
    margin-left: auto;
  }
  .reader-toolbar {
    padding: 0 16px;
  }
  .contact-email {
    font-size: 12px;
  }
  .contact-row {
    padding: 18px;
  }
  .contact-actions {
    gap: 2px;
  }
  .table-actions {
    gap: 4px;
  }
}
@media (max-width: 640px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 236px;
    transform: translateX(-100%);
    transition: transform 0.18s;
    box-shadow: 12px 0 35px #191f2815;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    padding: 0 16px 20px;
    min-height: 100dvh;
  }
  .topbar {
    height: 74px;
    gap: 10px;
  }
  .menu-button {
    display: inline-flex;
    margin-left: -4px;
  }
  .search-box {
    margin: 0;
    padding: 0 10px;
    gap: 6px;
  }
  .search-box input {
    padding: 11px 0;
    font-size: 12px;
  }
  .search-box kbd {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .mode-badge {
    font-size: 9px;
    padding: 5px 6px;
  }
  .connect-button {
    font-size: 11px;
    padding: 10px;
    min-width: 48px;
  }
  .connect-button > .icon {
    display: none;
  }
  .page-header {
    padding: 28px 2px 23px;
  }
  h1 {
    font-size: 27px;
  }
  .page-description {
    font-size: 12px;
  }
  .mail-workspace {
    height: calc(100dvh - 228px);
    min-height: 450px;
    border-radius: 13px;
  }
  .list-toolbar {
    padding: 0 18px;
    height: 61px;
  }
  .list-notice {
    font-size: 10px;
    padding: 10px 15px;
  }
  .mail-row {
    padding: 21px 17px;
    gap: 11px;
  }
  .sender-name {
    font-size: 13px;
  }
  .mail-row-subject {
    font-size: 13px;
  }
  .mail-snippet {
    font-size: 11px;
  }
  .mail-time {
    font-size: 9px;
  }
  .department-tag {
    font-size: 9px;
  }
  .reader-toolbar {
    height: 61px;
  }
  .reader-toolbar-group {
    gap: 6px;
  }
  .reader-content {
    padding: 26px 22px;
  }
  .reader h2 {
    font-size: 21px;
  }
  .message-body {
    font-size: 13px;
  }
  .reader-date {
    width: 100%;
    margin-left: 47px;
    font-size: 10px;
  }
  .reader-sender-name small {
    font-size: 10px;
  }
  .reader-placeholder h2 {
    font-size: 16px;
  }
  .toast {
    left: 50%;
    bottom: 20px;
    max-width: 92vw;
    width: max-content;
  }
  .dialog {
    border-radius: 20px;
    padding: 26px;
    width: calc(100% - 28px);
  }
  .dialog h2 {
    font-size: 22px;
  }
  .compose-dialog {
    padding: 0;
  }
  .compose-header {
    padding: 22px;
  }
  .compose-fields {
    padding: 0 21px;
  }
  .compose-line {
    gap: 7px;
    min-height: 51px;
  }
  .compose-line label {
    font-size: 11px;
    width: 60px;
  }
  .compose-line input {
    font-size: 12px;
  }
  .compose-line .text-button {
    font-size: 9px;
    padding: 5px;
  }
  .compose-dialog textarea {
    padding: 23px 21px;
    height: 250px;
    font-size: 13px;
  }
  .compose-footer {
    padding: 14px;
    gap: 7px;
  }
  .compose-footer .primary-button {
    padding: 11px 14px;
    font-size: 12px;
  }
  .attachment-limit {
    display: none;
  }
  .draft-status {
    font-size: 10px;
  }
  .compose-footer .text-button {
    font-size: 11px;
    padding: 8px 5px;
  }
  .compose-mode-note {
    font-size: 10px;
  }
  .contacts-toolbar,
  .management-toolbar {
    padding: 18px;
    align-items: flex-start;
  }
  .contacts-toolbar > p,
  .management-toolbar > p {
    font-size: 12px;
    line-height: 1.8;
  }
  .contacts-toolbar .primary-button,
  .management-toolbar .primary-button {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 37px;
    white-space: nowrap;
  }
  .contact-row {
    flex-wrap: wrap;
    padding: 19px;
    gap: 13px;
  }
  .contact-meta {
    width: calc(100% - 55px);
  }
  .contact-email {
    margin-left: 49px;
    flex: 1;
    font-size: 11px;
  }
  .contact-actions {
    margin-left: 0;
    gap: 0;
  }
  .contact-actions .icon-button {
    width: 30px;
  }
  .data-table td,
  .data-table th {
    padding: 18px 16px;
  }
  .data-table td {
    font-size: 12px;
  }
  .boot-error {
    inset: 30% 8% auto;
  }
  .management-note {
    font-size: 11px;
    padding: 17px 19px;
  }
}
@media (max-height: 800px) {
  .sidebar {
    padding-top: 22px;
  }
  .workspace-label {
    margin-top: 20px;
    margin-bottom: 16px;
  }
  .nav-heading {
    margin-top: 21px;
  }
  .nav-item {
    min-height: 40px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .nav-divider {
    margin-top: 15px;
    margin-bottom: 10px;
  }
  .connection-card {
    padding-bottom: 17px;
  }
}
.reader-category {
  display: none;
}
.connection-card {
  display: none;
}
.sidebar-bottom {
  padding-top: 20px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
