/* 공통 컴포넌트 */

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn--soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-strong); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--lg { min-height: 60px; font-size: 21px; padding: 0 26px; }
.btn--sm { min-height: 40px; font-size: 16px; padding: 0 14px; border-width: 1.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }

/* 카드 */
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.card + .card { margin-top: 20px; }
.card--accent { border: 3px solid var(--accent); }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card__head a { font-size: 17px; }
.card--flush { padding: 0; }
.card--flush .card__head { padding: 22px 24px 10px; margin: 0; }

/* 목록 줄 */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.card--flush .row { padding: 14px 24px; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.row__title { font-size: 19px; font-weight: 500; color: var(--text); text-decoration: none; }
a.row__title:hover { color: var(--accent); }
.row__meta { font-size: 16px; color: var(--text-3); }
.row--unread .row__title { font-weight: 700; }
a.row { color: inherit; text-decoration: none; }
a.row:hover .row__title { color: var(--accent); }

.empty {
  padding: 28px 0;
  text-align: center;
  color: var(--text-3);
}

/* 지금 할 일 버튼판 */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
a.tile:hover { border-color: var(--accent); color: var(--text); }
.tile--focus { border: 3px solid var(--accent); padding: 21px 23px; }
.tile__label { font-size: 23px; font-weight: 700; }
.tile__value { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.tile__num { font-size: 52px; font-weight: 700; line-height: 1; color: var(--accent); }
.tile--focus .tile__num { color: var(--text); }
.tile__unit { font-size: 18px; color: var(--text-2); }
.tile .icon { color: var(--accent); }

.menu-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.menu-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.menu-tile:hover { border-color: var(--accent); color: var(--text); }
.menu-tile__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.menu-tile__text strong { font-size: 20px; }
.menu-tile__text span { font-size: 16px; color: var(--text-3); }
.menu-tile .icon { color: var(--accent); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 140px; padding: 16px; }
  .tile--focus { padding: 15px; }
  .tile__label { font-size: 20px; }
  .tile__num { font-size: 40px; }
  .tile__unit { font-size: 16px; }
  .menu-tiles { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
  .menu-tile { border: 0; border-radius: 0; border-top: 1px solid var(--line-soft); min-height: 64px; }
  .menu-tile:first-child { border-top: 0; }
}

/* 배지·칩 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.chip--gray { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--danger { background: var(--danger-soft); color: var(--danger); }
.chip--solid { background: var(--accent); color: #fff; }

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 36px; height: 36px; font-size: 15px; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }

/* 폼 */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 17px; font-weight: 700; color: var(--text); }
.field__hint { font-size: 15px; color: var(--text-3); }
.field__error { font-size: 15px; color: var(--danger); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 18px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.errors {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
}
.errors ul { margin: 6px 0 0; padding-left: 20px; }

/* 표 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table th { font-size: 15px; color: var(--text-3); font-weight: 700; background: var(--surface-2); border-bottom: 2px solid var(--line); white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.table--grid th, .table--grid td { border: 2px solid var(--line); }

/* 정의 목록 */
.dl { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.dl dt { color: var(--text-3); font-size: 16px; }

/* 조직 트리 */
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: 22px; border-left: 2px solid var(--line-soft); margin-left: 10px; }
.tree__item { display: flex; align-items: center; gap: 8px; min-height: 44px; }

/* 대화상자 */
dialog.modal {
  width: min(560px, calc(100vw - 24px));
  border: 0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(16, 20, 24, .25);
}
dialog.modal::backdrop { background: rgba(16, 20, 24, .45); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 10px; border: 2px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.search-box { display: flex; align-items: center; gap: 6px; min-width: min(360px, 100%); }
.search-box .input { min-height: 50px; }
.tree__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.tree__link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
@media (max-width: 900px) { .hide-mobile { display: none !important; } }
.rot90 { transform: rotate(90deg); }

/* 결재 작성 */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-body { font-size: 17px; line-height: 1.6; overflow-x: auto; }
.doc-body table { border-collapse: collapse; max-width: 100%; }
.doc-body td, .doc-body th { border: 1px solid #9AA3AF; padding: 8px 10px; vertical-align: top; }
.doc-body img { max-width: 100%; height: auto; }
.doc-body--edit {
  min-height: 260px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.doc-body--edit:focus { border-color: var(--accent); outline: none; }
.line-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.line-row { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface-2); }
.line-row__head { display: flex; align-items: center; gap: 4px; }
.line-row__num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.line-row__name { flex: 1; margin-left: 6px; font-size: 18px; }
.line-row__head .icon-btn { width: 40px; height: 40px; }
.line-row__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 4px; }
.line-row__opts .check { min-height: 36px; }
.select--sm { min-height: 40px; width: auto; padding: 4px 10px; font-size: 16px; }
.line-add { display: flex; gap: 8px; margin-top: 12px; }
.line-add .select { flex: 1; min-width: 0; }
.chip-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip__x { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; color: inherit; }
.presets summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* 결재선 도장 칸 */
.stamps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stamp { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.stamp--current { border-color: var(--accent); background: var(--accent-soft); }
.stamp__role { font-size: 15px; color: var(--text-3); }
.stamp__name { font-size: 18px; }
.stamp__state { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--text-3); }
.stamp__state--ok, .stamp__state--approved { color: var(--ok); }
.stamp__state--rejected { color: var(--danger); }
.stamp__state--pending { color: var(--accent-strong); }
.stamp__sign { max-height: 44px; max-width: 120px; object-fit: contain; align-self: flex-start; }
.stamp__time { font-size: 14px; color: var(--text-3); min-height: 20px; }
.approve-buttons { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

/* 인쇄 */
.print-page { background: #fff; }
.print-sheet { max-width: 800px; margin: 0 auto; padding: 24px; }
.print-stamps { margin-left: auto; border-collapse: collapse; font-size: 14px; }
.print-stamps th, .print-stamps td { border: 1px solid #555; padding: 6px 10px; text-align: center; min-width: 80px; }
.clock { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.table tr.is-today td { background: var(--accent-soft); }
.off-day { color: var(--danger); }

/* 일정 */
.cal-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cal-cat { min-height: 40px; }
.cal-grid { overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row--head { background: var(--surface-2); border-bottom: 2px solid var(--line); }
.cal-head { padding: 10px; font-size: 16px; font-weight: 700; text-align: center; }
.cal-cell { min-height: 118px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-out { background: var(--surface-2); }
.cal-cell.is-out .cal-day { color: var(--text-3); }
.cal-cell.is-today { background: var(--accent-soft); }
.cal-day { align-self: flex-start; min-height: 32px; padding: 2px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.cal-day:hover { background: var(--surface); }
.is-sun { color: var(--danger) !important; }
.is-sat { color: var(--accent-strong) !important; }
.cal-holiday { font-size: 13px; font-weight: 500; }
.cal-ev { display: block; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, white); border-left: 4px solid var(--c); color: var(--text); font-size: 14px; line-height: 1.35; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { color: var(--text); background: color-mix(in srgb, var(--c) 24%, white); }
.cal-ev__time { font-weight: 700; margin-right: 4px; }
.cal-more { font-size: 14px; color: var(--text-3); padding-left: 6px; }
.cal-agenda { display: none; }
.cal-agenda__day { padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.cal-agenda__day.is-today { background: var(--accent-soft); }
.cal-agenda__day h3 { font-size: 18px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-side { max-width: none !important; }
}

/* 대화 */
.chat-layout { display: flex; gap: 20px; align-items: stretch; height: calc(100vh - var(--header-h) - 56px); min-height: 520px; }
.chat-layout__list { flex: 0 0 360px; min-width: 0; overflow-y: auto; }
.chat-layout__room { flex: 1; min-width: 0; }
.chat-list__item { padding: 12px 18px !important; }
.chat-list__item[aria-current="page"] { background: var(--accent-soft); }
.chat-empty { display: flex; align-items: center; justify-content: center; }
.chat-room { display: flex; flex-direction: column; overflow: hidden; }
.chat-room__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid var(--line); }
.chat-room__menu { position: relative; }
.chat-room__menu summary { list-style: none; }
.chat-room__menu summary::-webkit-details-marker { display: none; }
.chat-room__menu-panel { position: absolute; right: 0; top: 52px; z-index: 10; width: min(360px, 90vw); box-shadow: 0 12px 32px rgba(16,20,24,.18); }
.chat-room__body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; }
#messages { display: flex; flex-direction: column; gap: 14px; }
.chat-date { text-align: center; margin: 6px 0; }
.chat-date span { display: inline-block; padding: 2px 14px; border-radius: 14px; background: var(--line-soft); font-size: 15px; color: var(--text-2); }
.msg { display: flex; gap: 10px; max-width: 86%; }
.msg__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg__who { font-size: 15px; }
.msg__bubble { margin: 0; padding: 11px 16px; border-radius: 4px 14px 14px 14px; background: var(--surface); border: 2px solid var(--line); font-size: 18px; line-height: 1.5; word-break: break-word; }
.msg__bubble--deleted { color: var(--text-3); font-style: italic; }
.msg__file { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; max-width: 300px; }
.msg__file img { max-width: 100%; border-radius: 8px; }
.msg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.msg__unread { color: var(--accent-strong); font-weight: 700; display: none; }
.msg__actions { display: none; gap: 2px; }
.msg:hover .msg__actions, .msg:focus-within .msg__actions { display: inline-flex; }
.msg__mine-only { display: none !important; }
.msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-mine .avatar, .msg.is-mine .msg__who strong { display: none; }
.msg.is-mine .msg__col { align-items: flex-end; }
.msg.is-mine .msg__bubble { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 14px 4px 14px 14px; }
.msg.is-mine .msg__unread { display: inline; }
.msg.is-mine .msg__mine-only { display: inline-flex !important; }
form.inline { display: inline; }
.chat-sys { align-self: center; max-width: 92%; text-align: center; color: var(--text-2); font-size: 15px; }
.chat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 17px; }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 2px solid var(--line); background: var(--surface); }
.chat-composer__input { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-composer .textarea { min-height: 52px; max-height: 180px; resize: none; }
.chat-composer__send { min-height: 52px; }
.chat-composer__attach { border: 2px solid var(--line); height: 52px; width: 52px; }
.show-mobile { display: none !important; }
@media (max-width: 900px) {
  .chat-layout { height: calc(100vh - 64px - var(--tabbar-h) - 36px); gap: 0; }
  .chat-layout__list { flex: 1; }
  .chat-layout__room { position: fixed; inset: 64px 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0; border-radius: 0; border: 0; z-index: 15; }
  .chat-room ~ .chat-layout__list, .chat-layout:has(.chat-room) .chat-layout__list { display: none; }
  .show-mobile { display: inline-flex !important; }
  .msg { max-width: 94%; }
}
.is-starred { fill: var(--marker); color: #8A5A00; }

/* 자료실 */
.file-grid { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.file-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.file-card__thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg); color: var(--text-2); text-decoration: none; }
.file-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-card__ext { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.file-card__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-card__name { font-weight: 600; word-break: break-all; color: var(--text); text-decoration: none; }
.file-card__check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; accent-color: var(--accent); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 2px solid var(--line-soft); }
.bulk-bar .select { width: auto; max-width: 260px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.picker-list { max-height: 320px; overflow-y: auto; border: 2px solid var(--line); border-radius: 10px; margin-top: 8px; }
.picker-list .row { min-height: 52px; }
.usage { height: 10px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.usage span { display: block; height: 100%; background: var(--accent); }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; color: var(--text-2); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--text); color: #fff; }

/* 결재 현황판: 결재선 진행 */
.line-progress { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.line-progress__step { display: flex; flex-direction: column; min-width: 96px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; }
.line-progress__step small { font-size: 14px; color: var(--text-3); }
.line-progress__step.is-done { border-color: var(--accent); }
.line-progress__step.is-done span::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.line-progress__step.is-now { border-color: var(--text); background: var(--marker); }
.line-progress__step.is-rejected { border-color: #C81E1E; }
.line-progress__step.is-me span { font-weight: 700; }
.folders-side { max-width: 340px; }
@media (max-width: 900px) {
  .folders-side { order: 2; max-width: none; }
  .upload-card .form-actions { flex-wrap: wrap; }
  .upload-card .form-actions .input { flex: 1 1 100% !important; }
  .upload-card .form-actions .btn { flex: 1 1 auto; }
  .bulk-bar .select { max-width: 100%; }
}

/* 웹 전화 */
.webphone__panel { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; border: 3px solid var(--text); box-shadow: 0 12px 32px rgba(16, 20, 24, .18); }
.webphone__who { display: flex; align-items: center; gap: 12px; }
.webphone__who strong { display: block; font-size: 21px; }
.webphone__who span { display: block; }
.webphone__timer { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px; }
.webphone__actions { display: flex; gap: 10px; }
.webphone__actions .btn { flex: 1; }
@media (max-width: 900px) {
  .webphone__panel { left: 16px; right: 16px; width: auto; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
}

/* 대화방 머리줄: 이름은 한 줄로 줄이고, 휴대폰에서는 전화 버튼을 아이콘만 */
.chat-room__title { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room__head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .chat-room__head .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
