@import url("/static/font.css");
:root {
  --ink: #25283d;
  --muted: #85899b;
  --line: #eceef4;
  --paper: #fff;
  --bg: #f6f7fb;
  --accent: #6658d3;
  --soft: #f0edff;
  --green: #298777;
  --rose: #b75e73;
  --radius: 19px;
  font-family: "Office Sans", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
}
button:hover {
  background: #f7f6ff;
  border-color: #dcd6ff;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #aea5ff;
  outline-offset: 3px;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #584ac3;
}
button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
button.danger {
  color: #b44b63;
  background: #fff4f6;
  border-color: #f8d9df;
}
a {
  color: var(--accent);
  text-decoration: none;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #e1e3ed;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #e1dcff;
  border-color: #9c90ed;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1.1px;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.75;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.loading {
  padding: 60px;
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 36px 20px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1.2px;
  color: #303346;
  white-space: nowrap;
}
.brand {
  padding: 0 15px 35px;
}
.brand .caption {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 2.2px;
  color: #a0a3b1;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  background: none;
  color: #787c8f;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 550;
}
.nav button.active {
  background: var(--soft);
  color: #6456d0;
  font-weight: 750;
}
.nav button:hover {
  background: #f6f5fc;
}
.nav .count {
  margin-left: auto;
  background: #ddd6fb;
  color: #6656c1;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.office-hint {
  padding: 18px 15px;
  color: #9b9eae;
  font-size: 11px;
  line-height: 1.8;
}
.account {
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #efeafd;
  color: #7262c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
  flex-shrink: 0;
}
.avatar.green {
  background: #e9f4f0;
  color: #438d79;
}
.account-name {
  font-weight: 700;
  font-size: 13px;
}
.account-email {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.account button {
  padding: 4px;
  line-height: 1;
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.74);
  gap: 20px;
}
.crumb {
  font-size: 12px;
  color: #999dac;
  display: flex;
  align-items: center;
  gap: 12px;
}
.crumb b {
  color: #575c74;
  font-weight: 600;
}
.topmeta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #9296a8;
  font-size: 12px;
}
.topmeta .dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #78aa92;
  border-radius: 50%;
  margin-right: 7px;
}
.mobile-menu {
  display: none;
}
.workspace {
  padding: 35px 42px 50px;
  max-width: 1680px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a0a4b5;
  margin-bottom: 12px;
}
.page-heading p {
  color: #9699aa;
  font-size: 13px;
  margin-top: 10px;
}
.button-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.button-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button-row .icon {
  width: 17px;
  height: 17px;
}
.greeting {
  background: linear-gradient(105deg, #eeebfb, #f5f2fb 55%, #f1f3fa);
  border: 1px solid #eae6f7;
  border-radius: var(--radius);
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 23px;
}
.greeting h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.greeting p {
  font-size: 13px;
  color: #8c85a5;
}
.greeting .date-block {
  text-align: right;
  color: #8b819e;
  font-size: 12px;
  min-width: 96px;
}
.date-block strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  color: #706484;
  margin-bottom: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat:hover {
  border-color: #d9d1f2;
  background: white;
}
.stat-symbol {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0edff;
  color: #8f7dc9;
}
.stat:nth-child(2) .stat-symbol {
  background: #edf4f8;
  color: #7a9db3;
}
.stat:nth-child(3) .stat-symbol {
  background: #eaf5ef;
  color: #7ba68c;
}
.stat:nth-child(4) .stat-symbol {
  background: #fff3e9;
  color: #c4a184;
}
.stat .label {
  color: #9296a7;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}
.stat strong {
  font-size: 24px;
  line-height: 1;
  color: #444960;
  letter-spacing: -0.8px;
}
.stat small {
  font-size: 11px;
  color: #a2a5b3;
  margin-left: 5px;
  font-weight: 400;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 23px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 23px 25px 18px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading .tiny-tag {
  font-size: 10px;
  font-weight: 500;
  color: #a5a8b6;
  letter-spacing: 0.5px;
}
.panel-heading button {
  padding: 3px 0;
  font-size: 11px;
  border: 0;
  background: none;
  color: #9a9eaf;
  font-weight: 400;
}
.panel-body {
  padding: 0 25px 23px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f1f6;
}
.row:last-child {
  border-bottom: 0;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.row-sub {
  font-size: 11px;
  color: #9b9eae;
  margin-top: 5px;
  line-height: 1.5;
}
.click-row {
  cursor: pointer;
}
.click-row:hover {
  background: #faf9fe;
}
.badge {
  font-size: 10px;
  border-radius: 6px;
  background: #f3effc;
  color: #9980b7;
  padding: 5px 8px;
  white-space: nowrap;
  font-weight: 500;
}
.badge.승인,
.badge.완료 {
  background: #ecf6f1;
  color: #70a18a;
}
.badge.반려 {
  background: #fff0f3;
  color: #bb7a8d;
}
.badge.결재대기 {
  background: #fff5e8;
  color: #bb9a62;
}
.badge.임시저장 {
  background: #f0f1f5;
  color: #9b9eac;
}
.badge.진행중 {
  background: #eef1fc;
  color: #879acc;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick {
  padding: 16px 8px;
  border: 1px solid #eeedf5;
  background: #fcfbff;
  text-align: center;
  color: #777089;
  font-size: 11px;
  border-radius: 11px;
}
.quick .icon {
  display: block;
  margin: 0 auto 11px;
  width: 22px;
  height: 22px;
  color: #a298c4;
}
.quick:hover {
  background: #f4f0ff;
}
.notice {
  background: #f9f9fc;
  border-radius: 12px;
  padding: 17px 18px;
  margin-top: 12px;
}
.notice:first-child {
  margin-top: 0;
}
.notice p {
  margin-top: 6px;
  font-size: 12px;
  color: #9699ac;
  white-space: pre-wrap;
}
.notice h3 {
  font-size: 13px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: #a1a5b5;
  font-size: 12px;
  line-height: 1.9;
}
.empty .icon {
  display: block;
  margin: 0 auto 13px;
  width: 26px;
  height: 26px;
  color: #b6b0cd;
}
.empty strong {
  display: block;
  color: #767b91;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 5px;
}
.empty button {
  margin-top: 13px;
  font-size: 12px;
}
.info-line {
  font-size: 12px;
  padding: 13px 17px;
  border-radius: 11px;
  background: #f0edf9;
  color: #9186a8;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 15px;
  font-size: 12px;
  color: #9296a9;
}
.tabs button.active {
  background: white;
  border-color: #e5e2f2;
  color: #7969b0;
  box-shadow: 0 2px 3px #30235404;
}
.search {
  width: 240px;
  margin-left: auto;
  background: white;
  font-size: 12px;
  min-height: 37px;
  padding: 9px 13px;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.doc-table th {
  font-size: 11px;
  color: #9c9faf;
  font-weight: 500;
  background: #fbfbfd;
  padding: 14px 20px;
}
.doc-table td {
  font-size: 12px;
  padding: 19px 20px;
  border-bottom: 1px solid #f1f2f7;
}
.doc-table tr:last-child td {
  border: 0;
}
.doc-table .title-cell {
  font-weight: 600;
  color: #5a5e75;
  max-width: 420px;
}
.doc-table .title-cell small {
  display: block;
  font-weight: 400;
  color: #a4a7b4;
  font-size: 10px;
  margin-top: 6px;
}
.table-wrap {
  overflow-x: auto;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.column-title {
  font-size: 13px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  color: #7b7f93;
  margin: 0 3px 14px;
}
.column-title span {
  background: #eaeaf3;
  color: #a0a0b1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
}
.task-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 13px;
}
.task-card h3 {
  line-height: 1.7;
  font-size: 14px;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}
.task-card p {
  font-size: 12px;
  color: #a1a3b2;
  white-space: pre-wrap;
}
.task-meta {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #9397a9;
  flex-wrap: wrap;
}
.task-meta .avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
  border-radius: 8px;
}
.task-meta select {
  margin-left: auto;
  width: 85px;
  padding: 5px;
  min-height: 30px;
  font-size: 10px;
}
.mail-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 560px;
}
.mail-nav {
  padding: 23px 15px;
  border-right: 1px solid var(--line);
}
.mail-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  width: 100%;
  font-size: 12px;
  text-align: left;
  margin-bottom: 5px;
  padding: 13px 12px;
  color: #8e91a4;
  font-weight: 500;
}
.mail-nav button.active {
  background: var(--soft);
  color: #8b77b8;
}
.mail-nav .icon {
  width: 17px;
  height: 17px;
}
.mail-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  min-height: 70px;
  font-size: 12px;
  color: #979bad;
}
.mail-toolbar .search {
  width: 220px;
}
.mail-list .mail-row {
  padding: 22px 25px;
  border-bottom: 1px solid #f1f2f7;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 85px;
  gap: 20px;
  cursor: pointer;
  font-size: 12px;
  align-items: center;
}
.mail-row.unread {
  background: #fcfbff;
  font-weight: 650;
}
.mail-row:hover {
  background: #f8f6ff;
}
.mail-row .sender {
  color: #89839e;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-row .subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #65677e;
}
.mail-row time {
  color: #a8a9b7;
  font-size: 10px;
  text-align: right;
}
.mail-row .unread-dot {
  width: 5px;
  height: 5px;
  background: #a492d9;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.mail-detail {
  padding: 26px;
}
.mail-detail h2 {
  font-size: 20px;
  line-height: 1.7;
}
.mail-detail .envelope {
  margin: 16px 0 25px;
  color: #999bad;
  line-height: 1.9;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mail-body {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  min-height: 220px;
}
.files-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 0;
}
.files-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8e3f3;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
}
.cal-header button {
  border: 0;
  padding: 4px;
  background: none;
}
.cal-header strong {
  font-size: 17px;
}
.cal-days,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-days div {
  text-align: center;
  color: #a4a5b4;
  font-size: 11px;
  padding: 10px;
}
.cal-cell {
  min-height: 100px;
  border-top: 1px solid var(--line);
  border-right: 1px solid #f1f2f7;
  padding: 10px;
  cursor: pointer;
  font-size: 11px;
  color: #9396a9;
}
.cal-cell:nth-child(7n) {
  border-right: 0;
}
.cal-cell.outside {
  opacity: 0.35;
}
.cal-cell.today > span {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  padding: 4px;
}
.cal-cell.selected {
  background: #f7f5ff;
}
.cal-event {
  display: block;
  font-size: 9px;
  background: #efebf9;
  border-radius: 4px;
  padding: 5px;
  margin-top: 6px;
  color: #9c8bb4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  height: 610px;
  max-height: calc(100vh - 230px);
}
.chat-people {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  overflow: auto;
}
.chat-people button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  width: 100%;
  font-size: 12px;
  padding: 12px 10px;
  margin-bottom: 6px;
  font-weight: 500;
  color: #84889d;
}
.chat-people button.active {
  background: #f2effa;
}
.chat-people .avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 10px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-header {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 120px;
}
.chat-msg {
  max-width: 78%;
  align-self: flex-start;
}
.chat-msg.mine {
  align-self: flex-end;
}
.chat-msg .chat-name {
  font-size: 10px;
  color: #a5a6b4;
  margin-bottom: 6px;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 3px 14px 14px 14px;
  background: #f3f3f8;
  color: #73778e;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mine .chat-bubble {
  background: #eee9fa;
  border-radius: 14px 3px 14px 14px;
  color: #8a79a3;
}
.chat-msg time {
  font-size: 9px;
  color: #b3b4c0;
  display: block;
  margin-top: 5px;
}
.mine time {
  text-align: right;
}
.chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.chat-input textarea {
  min-height: 47px;
  height: 47px;
  max-height: 130px;
  font-size: 12px;
  resize: none;
}
.chat-input button {
  white-space: nowrap;
  font-size: 12px;
}
.file-icon {
  width: 36px;
  height: 40px;
  background: #f1eef9;
  border-radius: 9px;
  color: #a292bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #35364c69;
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal {
  width: min(700px, 100%);
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px #1f174c30;
}
.modal.wide {
  width: min(850px, 100%);
}
.modal-header {
  padding: 25px 29px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.modal-header p {
  font-size: 12px;
  color: #9c9eae;
  margin-top: 8px;
}
.modal-header button {
  padding: 5px;
  border: 0;
  color: #a6a7b7;
}
.modal-scroll {
  padding: 26px 29px;
  overflow-y: auto;
}
.modal-footer {
  padding: 18px 29px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.upload-box {
  border: 1px dashed #d8d1ec;
  background: #fbfaff;
  border-radius: 11px;
  padding: 18px;
  color: #9a8cb5;
  text-align: center;
  font-size: 12px;
}
.upload-box input {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
  min-height: 25px;
  margin-top: 10px;
}
.upload-list {
  font-size: 11px;
  color: #9b96ac;
  line-height: 1.8;
  padding-top: 8px;
}
.route-line {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f8fc;
  padding: 15px 18px;
  border-radius: 12px;
  margin-top: 20px;
  color: #85869e;
  font-size: 12px;
}
.route-line .icon {
  color: #b6b0c8;
}
.document-title {
  text-align: center;
  padding: 15px 0 25px;
}
.document-title h2 {
  font-size: 25px;
  letter-spacing: 5px;
}
.document-title p {
  font-size: 10px;
  color: #aaa9b5;
  margin-top: 12px;
}
.document-grid {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 12px;
}
.document-grid > div {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.document-grid .key {
  background: #faf9fc;
  color: #9995ab;
}
.decision {
  margin-top: 20px;
  padding: 17px;
  background: #f5f3fc;
  border-radius: 10px;
  line-height: 1.8;
  font-size: 12px;
  color: #8d81a7;
}
.error {
  font-size: 12px;
  color: #be6f84;
  margin-top: 12px;
  line-height: 1.7;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
}
.login-story {
  padding: 64px 70px;
  background: linear-gradient(145deg, #eeeafa, #f7f5fb 60%, #f0f4f8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story .wordmark {
  font-size: 26px;
}
.login-story h1 {
  font-size: 40px;
  line-height: 1.55;
  letter-spacing: -1.8px;
  color: #625b77;
  margin-top: 70px;
}
.login-story p {
  font-size: 14px;
  color: #a199b1;
  margin-top: 22px;
}
.login-mini {
  background: #ffffffa3;
  border: 1px solid #ffffffd9;
  border-radius: 20px;
  margin: 36px 0 50px;
  padding: 25px;
  max-width: 410px;
  box-shadow: 0 15px 50px #9487ae0b;
}
.login-mini .mini-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 21px;
  font-size: 12px;
  color: #9c92ac;
}
.login-mini .mini-row .icon {
  color: #b5a7cf;
}
.login-mini .mini-row:first-child {
  margin: 0;
}
.login-footer {
  font-size: 11px;
  color: #b5acc1;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-box {
  width: 350px;
}
.login-box .eyebrow {
  color: #b2a5cc;
  letter-spacing: 2.5px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -1px;
  color: #55536b;
}
.login-box > p {
  margin: 13px 0 35px;
  color: #a8a5b5;
  font-size: 13px;
}
.login-box .primary {
  width: 100%;
  padding: 15px;
  margin-top: 7px;
}
.login-box .login-note {
  margin-top: 24px;
  font-size: 11px;
  color: #b1a9be;
  line-height: 1.9;
}
.login-box input {
  background: #fcfbfe;
  border-color: #eeeaf4;
  padding: 14px;
}
.login-box label {
  color: #9a91ab;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  background: #5d536f;
  color: #fff;
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 13px;
  box-shadow: 0 10px 35px #4c3a6420;
  z-index: 120;
  transition: 0.2s;
  max-width: calc(100vw - 32px);
  width: max-content;
  line-height: 1.6;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mobile-brand {
  display: none;
}
.mobile-shade {
  display: none;
}
.section-note {
  font-size: 11px;
  color: #a5a4b4;
  padding: 22px 0 0;
  line-height: 1.8;
}
.inline-error {
  padding: 25px;
  color: #b67688;
  font-size: 13px;
}
.people-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.person p {
  font-size: 11px;
  color: #a3a0b3;
  overflow-wrap: anywhere;
}
.person strong {
  font-size: 13px;
}
.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 10px;
}
.mail-recipient {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mail-recipient label {
  margin: 0;
  background: #f9f8fc;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 400;
}
.mail-recipient small {
  display: block;
  font-size: 10px;
  color: #a39bae;
  margin-top: 3px;
}
.mail-recipient input {
  margin-right: 6px;
  vertical-align: middle;
}
.inline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.inline-heading h3 {
  font-size: 13px;
}
.file-type {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.date-tile {
  width: 38px;
  background: #f4f0fb;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  color: #9a8db5;
  font-size: 11px;
}
.date-tile strong {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}
.check-dot {
  width: 17px;
  height: 17px;
  border: 1px solid #dbd8e7;
  border-radius: 5px;
  flex-shrink: 0;
}
.check-dot.done {
  background: #e8f4ec;
  border-color: #cfdfd4;
}
.print-only {
  display: none;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 42px 55px;
  }
  .greeting {
    padding: 32px;
  }
  .stats {
    gap: 23px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
    padding: 28px 14px 18px;
  }
  .brand {
    padding-left: 10px;
  }
  .wordmark {
    font-size: 20px;
  }
  .workspace {
    padding: 28px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px 13px;
    gap: 10px;
  }
  .stat-symbol {
    width: 34px;
    height: 34px;
  }
  .panel-heading {
    padding: 20px;
  }
  .panel-body {
    padding: 0 20px 20px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .cal-cell {
    min-height: 90px;
  }
  .mail-list .mail-row {
    grid-template-columns: 120px minmax(0, 1fr) 65px;
    gap: 12px;
  }
  .login-story {
    padding: 45px;
  }
  .login-story h1 {
    font-size: 32px;
  }
  .chat-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .task-card {
    margin-bottom: 12px;
  }
  .mail-layout {
    grid-template-columns: 1fr;
  }
  .mail-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    padding: 12px;
    gap: 5px;
  }
  .mail-nav button {
    margin: 0;
    justify-content: center;
    padding: 10px 7px;
  }
  .login-story {
    padding: 35px;
  }
  .login-story h1 {
    font-size: 28px;
  }
  .login-main {
    padding: 30px;
  }
  .login-mini {
    padding: 20px;
  }
  .topmeta .date {
    display: none;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    width: 230px;
    padding-top: 30px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #36344755;
    z-index: 19;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
    gap: 12px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .crumb {
    display: none;
  }
  .mobile-menu {
    display: block;
    border: 0;
    padding: 7px;
    background: none;
    margin-left: -7px;
    color: #a39ab6;
  }
  .mobile-brand {
    display: block;
    font-size: 19px;
    letter-spacing: -1.1px;
    font-weight: 800;
    margin-right: auto;
    color: #4a455a;
  }
  .topmeta {
    gap: 0;
    font-size: 10px;
  }
  .topmeta .avatar {
    display: none;
  }
  .workspace {
    padding: 25px 20px 40px;
  }
  .page-heading {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 9px;
  }
  h1 {
    font-size: 24px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 230px;
  }
  .page-heading .button-row button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .page-heading .button-row .ghost {
    display: none;
  }
  .greeting {
    padding: 22px;
    gap: 10px;
  }
  .greeting h2 {
    font-size: 18px;
  }
  .greeting p {
    font-size: 11px;
  }
  .greeting .date-block {
    display: none;
  }
  .stats {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px 13px;
    gap: 11px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat .label {
    font-size: 10px;
  }
  .stat-symbol {
    width: 34px;
    height: 34px;
  }
  .stat-symbol .icon {
    width: 18px;
    height: 18px;
  }
  .stat small {
    font-size: 10px;
  }
  .dashboard-grid,
  .stack {
    gap: 20px;
  }
  .panel {
    border-radius: 16px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading .tiny-tag {
    display: none;
  }
  .quick-grid {
    gap: 8px;
  }
  .quick {
    font-size: 10px;
    padding: 16px 5px;
  }
  .panel-heading {
    padding: 20px 18px 16px;
  }
  .panel-body {
    padding: 0 18px 19px;
  }
  .row {
    padding: 14px 0;
    gap: 10px;
  }
  .row-title {
    font-size: 12px;
  }
  .row-sub {
    font-size: 10px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .row .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
    border-radius: 9px;
  }
  .tabs {
    gap: 2px;
    margin-bottom: 16px;
  }
  .tabs button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .search {
    width: 100%;
    margin: 10px 0 0;
  }
  .doc-table th,
  .doc-table td {
    padding: 15px 13px;
    font-size: 11px;
  }
  .doc-table .hide-mobile {
    display: none;
  }
  .doc-table .title-cell {
    min-width: 170px;
  }
  .mail-toolbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .mail-toolbar .search {
    width: 100%;
    margin: 0;
  }
  .mail-list .mail-row {
    padding: 17px;
    grid-template-columns: minmax(0, 1fr) 65px;
    gap: 7px 10px;
  }
  .mail-row .sender {
    font-size: 11px;
  }
  .mail-row .subject {
    grid-row: 2;
    grid-column: 1/-1;
    font-size: 12px;
  }
  .mail-row time {
    grid-column: 2;
    grid-row: 1;
  }
  .mail-layout {
    min-height: 450px;
  }
  .mail-detail {
    padding: 20px;
  }
  .mail-detail h2 {
    font-size: 18px;
  }
  .mail-body {
    font-size: 13px;
  }
  .calendar-layout {
    gap: 18px;
  }
  .cal-cell {
    min-height: 67px;
    padding: 8px 4px;
    font-size: 10px;
  }
  .cal-event {
    font-size: 8px;
    padding: 3px;
  }
  .cal-header {
    padding: 20px;
  }
  .cal-header strong {
    font-size: 15px;
  }
  .cal-days div {
    font-size: 10px;
  }
  .chat-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 230px);
    max-height: none;
    min-height: 400px;
  }
  .chat-people {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .chat-people button {
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 9px;
    font-size: 10px;
  }
  .chat-people .avatar {
    display: none;
  }
  .chat-main {
    flex: 1;
    min-height: 0;
  }
  .chat-header {
    padding: 14px 18px;
    font-size: 12px;
  }
  .chat-stream {
    padding: 18px;
    gap: 17px;
  }
  .chat-bubble {
    font-size: 12px;
    padding: 11px 13px;
  }
  .chat-input {
    padding: 12px;
    gap: 8px;
  }
  .chat-input button {
    padding: 9px 12px;
  }
  .chat-msg {
    max-width: 90%;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: 94dvh;
    border-radius: 15px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-header h2 {
    font-size: 18px;
  }
  .modal-header p {
    font-size: 11px;
  }
  .modal-scroll {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .modal-footer button {
    font-size: 12px;
    padding: 11px 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin-bottom: 16px;
  }
  .route-line {
    font-size: 11px;
    padding: 13px;
  }
  .route-line .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .mail-recipient {
    grid-template-columns: 1fr;
  }
  .document-grid {
    grid-template-columns: 80px minmax(0, 1fr);
    font-size: 11px;
  }
  .document-grid > div {
    padding: 11px;
  }
  .document-title h2 {
    font-size: 22px;
  }
  .login-page {
    display: block;
    background: linear-gradient(160deg, #f1edf9, #fff);
    min-height: 100dvh;
  }
  .login-story {
    padding: 40px 30px 0;
    background: none;
    display: block;
  }
  .login-story .wordmark {
    font-size: 24px;
  }
  .login-story h1,
  .login-story p,
  .login-mini,
  .login-footer {
    display: none;
  }
  .login-main {
    padding: 65px 30px 40px;
  }
  .login-box {
    max-width: 380px;
    width: 100%;
  }
  .login-box h2 {
    font-size: 28px;
  }
  .login-box > p {
    font-size: 12px;
  }
  .login-box input {
    background: #ffffffb3;
  }
  .login-box .login-note {
    font-size: 11px;
  }
  .info-line {
    font-size: 11px;
    padding: 12px 14px;
  }
  .section-note {
    font-size: 10px;
  }
  .file-name {
    overflow-wrap: anywhere;
  }
  .file-list .hide-mobile {
    display: none;
  }
}
@media print {
  body {
    background: white;
  }
  .shell,
  #toast,
  .modal-header,
  .modal-footer {
    display: none !important;
  }
  .modal-backdrop {
    position: static;
    background: white;
    display: block;
    padding: 0;
    backdrop-filter: none;
  }
  .modal,
  .modal.wide {
    width: 100%;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
  }
  .modal-scroll {
    overflow: visible;
    padding: 15mm;
  }
  .print-only {
    display: block;
    text-align: right;
    font-size: 12px;
    margin-bottom: 30px;
  }
  .document-grid > div {
    break-inside: avoid;
  }
  .decision {
    break-inside: avoid;
  }
}
/* Keep secondary text readable on office monitors and phones. */
[hidden] {
  display: none !important;
}
.page-heading p,
.row-sub,
.section-note,
.stat .label,
.stat small,
.notice p,
.office-hint,
.crumb,
.topmeta,
.eyebrow,
.panel-heading .tiny-tag,
.panel-heading button,
.account-email,
.column-title,
.task-card p,
.task-meta,
.mail-toolbar,
.mail-row time,
.mail-detail .envelope,
.chat-name,
.chat-msg time,
.login-box > p,
.login-box label,
.login-box .login-note,
.login-story p,
.login-footer,
.document-grid .key,
.document-title p,
.person p {
  color: #74788d;
}
.info-line,
.greeting p,
.decision {
  color: #776a91;
}
.mail-nav button,
.tabs button,
.quick,
.chat-bubble {
  color: #746b88;
}
.empty {
  color: #85899b;
}
.badge.결재대기 {
  color: #94713c;
}
.badge.승인,
.badge.완료 {
  color: #4c8069;
}
.badge.반려 {
  color: #a4546d;
}
.badge.임시저장 {
  color: #72778c;
}
.badge.진행중 {
  color: #6277a8;
}
.account > div {
  min-width: 0;
  flex: 1;
}
.account-email {
  font-size: 9px;
}
@media (max-width: 850px) {
  .mail-layout {
    grid-template-rows: auto 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar:not(.open) {
    visibility: hidden;
  }
  .mail-list .subject {
    font-size: 13px;
  }
  .mail-list .sender,
  .page-heading p,
  .mail-nav button {
    font-size: 12px;
  }
  .row-title {
    font-size: 13px;
  }
  .row-sub {
    font-size: 11px;
  }
}
.button-row button {
  white-space: nowrap;
}
.page-heading > .button-row {
  flex-shrink: 0;
}
/* Operational screens share the existing restrained company workspace. */
.sidebar { overflow-y: auto; }
.nav { flex-shrink: 0; }
.notification-button { display:flex; align-items:center; gap:6px; border:1px solid #e7e3f2; background:white; padding:9px; border-radius:12px; color:#6654c7; }
.notification-button span { font-size:12px; font-weight:700; }
.home-shortcuts { display:flex; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.home-shortcuts button { display:flex; align-items:center; gap:8px; border:1px solid #e5e1ef; background:white; border-radius:12px; padding:10px 16px; color:#665e7a; }
.record-grid,.tools-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.record-card { padding:26px; min-width:0; }
.record-card h2 { margin:14px 0; font-size:20px; overflow-wrap:anywhere; }
.record-card p { color:#716b81; font-size:14px; line-height:1.8; }
.record-actions { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0 12px; }
.record-actions button,.button-link { border:1px solid #e4dfef; background:white; color:#5d5379; border-radius:10px; padding:9px 14px; font-size:13px; text-decoration:none; }
.record-actions button.primary { background:#6654c7; color:white; }
.record-actions button.danger { color:#a7394c; border-color:#efd5dc; background:#fff7f9; }
.staff-delete-reasons { padding-left:22px; line-height:1.8; color:#716b81; overflow-wrap:anywhere; }
.pre-wrap,.record-details dd { white-space:pre-wrap; overflow-wrap:anywhere; }
.record-preview { max-height:100px; overflow:hidden; white-space:pre-wrap; }
.tool-card { text-align:left; padding:26px; cursor:pointer; color:inherit; }
.tool-card h2 { font-size:18px; margin:20px 0 10px; }
.tool-card p { color:#81798f; line-height:1.7; font-size:13px; }
.tool-card>span:last-child { display:block; margin-top:22px; color:#7764bf; font-size:12px; }
.tool-card:hover { border-color:#b5a4eb; }
.record-details { display:grid; grid-template-columns:120px minmax(0,1fr); margin-top:24px; }
.record-details dt,.record-details dd { padding:13px 10px; border-bottom:1px solid #eeeaf3; margin:0; font-size:14px; line-height:1.7; }
.record-details dt { color:#888097; }
.poll-options { display:grid; gap:10px; margin-top:20px; }
.poll-options button { text-align:left; border:1px solid #ded6ef; border-radius:10px; padding:14px; }
.poll-options small { display:block; margin-top:6px; }
.notification-list { display:grid; gap:8px; }
.notification-row { text-align:left; padding:16px; border:1px solid #eeebf3; border-radius:12px; background:white; color:#746c84; }
.notification-row.unread { background:#f4f0ff; color:#514471; }
.notification-row span { display:block; font-size:12px; margin-top:8px; }
.attendance-card { padding:28px; display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; }
.attendance-card h2 { font-size:22px; margin:10px 0; }
.attendance-card p { color:#8b819e; font-size:13px; }
.attendance-controls { display:flex; align-items:end; flex-wrap:wrap; gap:12px; max-width:100%; }
.attendance-controls .field { margin:0; max-width:180px; }
.attendance-controls .error { width:100%; }
.section-heading { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin:30px 0 16px; }
.section-heading h2 { font-size:19px; margin:0; }
.section-heading .row-sub { max-width:100%; }
.doc-table td small { display:block; color:#9890a7; font-size:11px; margin-top:5px; }
.history-item { border-bottom:1px solid #eeeaf3; padding:16px 0; }
.history-item summary { cursor:pointer; font-size:13px; color:#74698c; }
.account-detail { overflow-wrap:anywhere; }
.modal-footer { flex-wrap:wrap; }
@media(max-width:800px){
 .record-grid,.tools-grid { grid-template-columns:1fr; gap:14px; }
 .record-card,.tool-card { padding:22px; }
 .record-card h2 { font-size:18px; }
 .record-details { grid-template-columns:88px minmax(0,1fr); }
 .record-details dt,.record-details dd { font-size:12px; padding:10px 6px; }
 .home-shortcuts { gap:6px; }
 .home-shortcuts button { padding:9px 10px; font-size:11px; gap:5px; }
 .attendance-card { padding:22px; }
 .attendance-controls { width:100%; }
 .attendance-controls .field { max-width:none; width:100%; }
 .attendance-controls button { width:100%; padding:14px; }
 .page-heading { flex-wrap:wrap; }
 .page-heading .button-row { flex-wrap:wrap; }
 .page-heading .button-row .ghost { display:inline-flex; }
 .notification-button { padding:7px; margin-left:8px; }
 .notification-button .icon { width:17px; height:17px; }
 .modal-footer button { padding:10px 12px; }
 .tool-card>span:last-child { margin-top:14px; }
}
