/* OmniMEP SaaS collaboration shell. All selectors are intentionally namespaced. */

body.collab-auth-locked {
  overflow: hidden;
}

body.collab-session-pending {
  overflow: hidden;
  background: #fbfbfc;
}

body.collab-session-pending > :not(script):not(.collab-auth-shell) {
  visibility: hidden;
}

.collab-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.collab-header-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #eaf1f4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-size: 11px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-header-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.collab-header-button svg {
  width: 15px;
  height: 15px;
}

.collab-header-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-avatar {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  color: var(--navy-950);
  background: #dff1fa;
  border-radius: 50%;
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-notification-button {
  position: relative;
  width: 34px;
  justify-content: center;
  padding: 6px;
}

.collab-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  background: #c64343;
  border: 2px solid var(--navy-950);
  border-radius: 999px;
  font-size: 8px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-auth-shell {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  overflow: hidden;
  background: #fbfbfc;
  font-family: "Pretendard Variable", Pretendard, "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.collab-auth-shell > .collab-auth-brand {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 44px 48px 48px;
  overflow: hidden;
  color: #151b26;
  background: #f3f6fa;
}

.collab-auth-shell > .collab-auth-brand > * {
  position: relative;
  z-index: 1;
}

.collab-auth-shell .collab-auth-logo {
  display: inline-flex;
  width: 190px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.mepos-auth-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.collab-auth-logo .mepos-auth-logo-image {
  filter: none;
}

.collab-auth-shell .collab-auth-pitch {
  width: 100%;
  max-width: 480px;
  margin-block: auto;
  transform: translateY(clamp(24px, 6vh, 64px));
}

.collab-auth-shell .collab-auth-pitch h1 {
  margin: 0;
  color: #151b26;
  font-family: "Pretendard Variable", Pretendard, "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 46px;
  font-weight: var(--workspace-font-weight-medium, 500);
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.collab-auth-shell .collab-auth-pitch h1 span,
.collab-auth-shell .collab-auth-pitch p span {
  display: block;
}

.collab-auth-shell .collab-auth-pitch h1 span {
  white-space: nowrap;
}

.collab-auth-shell .collab-auth-pitch p {
  margin: 22px 0 0;
  color: #687180;
  font-size: 16px;
  font-weight: var(--workspace-font-weight-regular, 400);
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.collab-auth-shell > .collab-auth-form-column {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
  background: #fbfbfc;
  border-left: 1px solid #e8ebf0;
}

.collab-auth-form-stage {
  width: min(420px, 100%);
  margin-block: auto;
  padding-block: 32px;
}

.collab-auth-shell[data-auth-mode="login"] .collab-auth-form-stage {
  transform: none;
}

.collab-auth-mobile-logo {
  display: none;
}

.collab-auth-form-column .collab-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  color: #171c26;
  background: #fff;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(18, 28, 45, 0.055);
}

.collab-auth-shell .collab-auth-card h2 {
  margin: 0;
  color: #171c26;
  font-family: "Pretendard Variable", Pretendard, "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: var(--workspace-font-weight-medium, 500);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.collab-auth-shell .collab-auth-description {
  margin: 9px 0 36px;
  color: #747c89;
  font-size: 14px;
  font-weight: var(--workspace-font-weight-regular, 400);
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.collab-admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.collab-admin-tabs button {
  min-height: 35px;
  flex: 1 1 0;
  padding: 6px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-admin-tabs button[aria-selected="true"] {
  color: var(--navy-950);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.collab-form {
  display: grid;
  gap: 15px;
}

.collab-auth-shell .collab-auth-card .collab-form {
  gap: 20px;
}

.collab-field {
  display: grid;
  gap: 6px;
}

.collab-auth-shell .collab-auth-card .collab-field {
  position: relative;
  gap: 8px;
}

.collab-field > span,
.collab-field > label,
.collab-fieldset legend {
  color: var(--navy-900);
  font-size: 11px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-auth-shell .collab-auth-card .collab-field > span,
.collab-auth-shell .collab-auth-card .collab-field > label,
.collab-auth-shell .collab-auth-card .collab-fieldset legend {
  color: #363d49;
  font-size: 13px;
  font-weight: var(--workspace-font-weight-regular, 400);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.collab-field input,
.collab-field select,
.collab-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.collab-auth-shell .collab-auth-card .collab-field input,
.collab-auth-shell .collab-auth-card .collab-field select {
  height: 52px;
  min-height: 52px;
  padding: 0 15px;
  color: #171c26;
  background: #fff;
  border: 1px solid #dde2e9;
  border-radius: 10px;
  caret-color: #171c26;
  color-scheme: light;
  font-size: 14px;
  font-weight: var(--workspace-font-weight-regular, 400);
  transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.collab-auth-shell .collab-auth-card .collab-field input::placeholder {
  color: #a2aab6;
}

.collab-password-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.collab-password-field > label {
  grid-column: 1;
  grid-row: 1;
}

.collab-password-control {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.collab-auth-shell .collab-password-control > input {
  padding-right: 52px;
}

.collab-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease;
}

.collab-password-toggle:hover {
  color: #161b26;
  background: #f3f4f6;
}

.collab-password-toggle:focus-visible {
  outline: 2px solid rgba(40, 100, 220, 0.42);
  outline-offset: 1px;
}

.collab-password-icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.collab-auth-shell .collab-auth-card .collab-form > .collab-forgot-password {
  justify-self: start;
  margin-top: -1px;
}

.collab-password-field > small {
  grid-column: 1 / -1;
  grid-row: 3;
}

.collab-field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.collab-field input:focus,
.collab-field select:focus,
.collab-field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(8, 126, 179, 0.12);
}

.collab-auth-shell .collab-auth-card .collab-field input:focus,
.collab-auth-shell .collab-auth-card .collab-field select:focus {
  outline: none;
  border-color: #5278cf;
  box-shadow: 0 0 0 3px rgba(62, 105, 201, 0.1);
}

.collab-auth-shell .collab-auth-card .collab-field input:hover:not(:focus),
.collab-auth-shell .collab-auth-card .collab-field select:hover:not(:focus) {
  border-color: #c8cfd9;
}

.collab-auth-shell .collab-auth-card .collab-field input[aria-invalid="true"],
.collab-auth-shell .collab-auth-card .collab-field input:user-invalid {
  background: #fff;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.07);
}

.collab-field small,
.collab-form-help {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.collab-auth-shell .collab-auth-card .collab-field small,
.collab-auth-shell .collab-auth-card .collab-form-help {
  color: #8a919e;
  font-size: 12px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 1.5;
}

.collab-auth-shell .collab-auth-card .collab-field > .collab-field-error {
  position: absolute;
  z-index: 1;
  top: calc(100% + 2px);
  left: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #dc2626;
  font-size: 12px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.collab-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collab-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.collab-choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.collab-choice:has(input:checked) {
  background: var(--blue-50);
  border-color: #88bfd5;
}

.collab-choice input {
  margin-top: 2px;
}

.collab-choice strong,
.collab-choice small {
  display: block;
}

.collab-choice strong {
  color: var(--navy-900);
  font-size: 11px;
}

.collab-choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.collab-form-error,
.collab-form-notice {
  padding: 10px 11px;
  color: #742b2b;
  background: var(--red-bg);
  border: 1px solid #ebc1c1;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.55;
}

.collab-form-notice p {
  margin: 5px 0 0;
}

.collab-form-notice {
  color: #215e4b;
  background: var(--green-bg);
  border-color: #b8dece;
}

.collab-auth-shell .collab-auth-card .collab-form-error {
  min-height: 17px;
  margin: -4px 0 -3px;
  padding: 0;
  color: #dc2626;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 1.45;
}

.collab-auth-shell .collab-auth-card .collab-form-notice {
  padding: 10px 12px;
  color: #176b4e;
  background: #f0faf5;
  border: 1px solid #ccebdd;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.collab-link-button {
  width: max-content;
  padding: 3px 0;
  color: var(--blue-700);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-auth-shell .collab-auth-card .collab-link-button {
  padding: 2px 0;
  color: #3569d4;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 1.4;
}

.collab-auth-shell .collab-auth-card .collab-link-button:hover {
  color: #3569d4;
  background: transparent;
  text-decoration: underline;
}

.collab-auth-shell .collab-auth-card .collab-form > .collab-forgot-password,
.collab-auth-shell .collab-auth-switch .collab-auth-switch-button {
  color: #171c26;
}

.collab-auth-shell .collab-auth-card .collab-form > .collab-forgot-password:hover,
.collab-auth-shell .collab-auth-switch .collab-auth-switch-button:hover {
  color: #0f172a;
}

.collab-auth-shell .collab-auth-card .collab-link-button:focus-visible {
  outline: 2px solid rgba(40, 100, 220, 0.38);
  outline-offset: 3px;
}

.collab-auth-shell .collab-auth-card .collab-auth-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
  padding: 0 18px;
  color: #fff;
  background: #171c26;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(22, 34, 55, 0.1);
  font-size: 14px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.collab-auth-shell .collab-auth-card .collab-auth-submit:hover:not(:disabled) {
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(22, 34, 55, 0.1);
  transform: none;
}

.collab-auth-shell .collab-auth-card .collab-auth-submit:active:not(:disabled) {
  background: #0f172a;
  box-shadow: 0 2px 7px rgba(22, 34, 55, 0.1);
  transform: translateY(1px);
}

.collab-auth-shell .collab-auth-card .collab-auth-submit:focus-visible {
  outline: 3px solid rgba(40, 100, 220, 0.24);
  outline-offset: 3px;
}

.collab-auth-shell .collab-auth-card .collab-auth-submit:disabled {
  color: rgba(255, 255, 255, 0.92);
  background: #7b8391;
  box-shadow: none;
  cursor: wait;
  opacity: 1;
  transform: none;
}

.collab-auth-shell .collab-auth-card .collab-auth-submit[aria-busy="true"]::before {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: collab-auth-spin 0.72s linear infinite;
}

@keyframes collab-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.collab-auth-shell .collab-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  color: #929aa7;
  font-size: 13px;
  font-weight: var(--workspace-font-weight-regular, 400);
  line-height: 1.5;
}

.collab-auth-shell .collab-auth-switch .collab-auth-switch-button {
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-auth-shell .collab-auth-switch .collab-auth-switch-button:hover {
  text-decoration: underline;
}

.collab-dialog {
  width: min(600px, calc(100vw - 28px));
}

.collab-dialog-wide {
  width: min(880px, calc(100vw - 28px));
}

.collab-dialog .collab-dialog-body {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 185px);
  padding: 20px 22px;
  overflow-y: auto;
}

.collab-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 22px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.collab-dialog-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.collab-section {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.collab-join-code {
  margin-bottom: 16px;
  background: var(--blue-50);
  border-color: #b8ddea;
}

.collab-join-code input[readonly] {
  color: var(--navy-950);
  background: #fff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.collab-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.collab-section-heading h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 14px;
}

.collab-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.collab-workspace-list,
.collab-list,
.collab-comment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collab-workspace-item,
.collab-list-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collab-workspace-item {
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) auto;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.collab-workspace-item {
  cursor: pointer;
}

button.collab-workspace-item:hover {
  background: #f5fafc;
  border-color: #91bfd2;
}

button.collab-workspace-item:focus-visible {
  border-color: var(--blue-700);
  outline: 3px solid #9ed5e8;
  outline-offset: 2px;
}

button.collab-workspace-item:disabled {
  cursor: wait;
}

.collab-workspace-item[data-active="true"] {
  background: var(--blue-50);
  border-color: #9acbdf;
}

.collab-workspace-item[aria-disabled="true"] {
  cursor: not-allowed;
}

.collab-workspace-switch-status {
  justify-self: end;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
  white-space: nowrap;
}

button.collab-workspace-item[aria-busy="true"] .collab-workspace-switch-status {
  color: var(--muted);
}

.collab-item-copy {
  min-width: 0;
}

.collab-item-copy strong,
.collab-item-copy small {
  display: block;
}

.collab-item-copy strong {
  overflow-wrap: anywhere;
  color: var(--navy-900);
  font-size: 11px;
}

.collab-item-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.collab-item-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.collab-mini-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
  text-decoration: none;
  cursor: pointer;
}

.collab-mini-button[data-tone="danger"] {
  color: var(--red);
  border-color: #dfbbbb;
}

.collab-mini-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.collab-pill {
  display: inline-flex;
  width: max-content;
  padding: 3px 7px;
  color: #566a75;
  background: #edf1f3;
  border-radius: 999px;
  font-size: 8px;
  font-weight: var(--workspace-font-weight-regular, 400);
  white-space: nowrap;
}

.collab-pill[data-tone="good"] {
  color: var(--green);
  background: var(--green-bg);
}

.collab-pill[data-tone="warning"] {
  color: var(--amber);
  background: var(--amber-bg);
}

.collab-pill[data-tone="danger"] {
  color: var(--red);
  background: var(--red-bg);
}

.collab-empty,
.collab-loading,
.collab-error-state {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  background: #fafcfc;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.6;
}

.collab-loading {
  min-height: 90px;
}

.collab-error-state {
  color: #742b2b;
  background: var(--red-bg);
  border-color: #dfbbbb;
}

.collab-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface-alt);
  border-radius: 9px;
}

.collab-profile-summary .collab-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 14px;
}

.collab-profile-summary strong,
.collab-profile-summary small {
  display: block;
}

.collab-profile-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.collab-admin-panel[hidden] {
  display: none;
}

.collab-admin-tabs {
  margin-bottom: 0;
  overflow-x: auto;
}

.collab-admin-tabs button {
  flex: 1 0 auto;
}

.collab-member-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.7fr) 118px 112px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e8edef;
}

.collab-member-row:last-child {
  border-bottom: 0;
}

.collab-member-row select {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 9px;
}

.collab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collab-filter-group {
  display: flex;
  gap: 7px;
  align-items: center;
}

.collab-filter-group select {
  min-height: 34px;
  padding: 5px 30px 5px 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 9px;
}

.collab-record-button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.collab-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
}

.collab-detail-copy {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.collab-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.collab-detail-meta > div {
  padding: 9px;
  background: var(--surface-alt);
  border-radius: 7px;
}

.collab-detail-meta dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-detail-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--navy-900);
  font-size: 10px;
}

.collab-comment {
  padding: 10px 11px;
  background: #f8fafb;
  border: 1px solid #e2e9ec;
  border-radius: 7px;
}

.collab-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
}

.collab-comment header strong {
  color: var(--navy-900);
  font-size: 9px;
}

.collab-comment p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.collab-notification-item[data-unread="true"] {
  background: var(--blue-50);
  border-color: #add4e4;
}

.collab-notification-action {
  display: block;
  color: inherit;
  text-decoration: none;
}

.collab-live-region {
  position: fixed;
  z-index: 1300;
  top: 76px;
  right: 18px;
  display: grid;
  width: min(380px, calc(100vw - 28px));
  gap: 8px;
  pointer-events: none;
}

.collab-live-message {
  padding: 12px 14px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 10px;
  line-height: 1.5;
}

.collab-live-message[data-tone="danger"] {
  color: #742b2b;
  border-left-color: var(--red);
}

.collab-live-message[data-tone="good"] {
  border-left-color: var(--green);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .collab-auth-shell {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  }

  .collab-auth-shell > .collab-auth-brand {
    padding: 32px;
  }

  .collab-auth-shell .collab-auth-logo {
    width: 172px;
  }

  .collab-auth-shell .collab-auth-pitch {
    max-width: 360px;
  }

  .collab-auth-shell .collab-auth-pitch h1 {
    font-size: 40px;
  }

  .collab-auth-shell .collab-auth-pitch p {
    font-size: 15px;
  }

  .collab-auth-shell > .collab-auth-form-column {
    padding-inline: 32px;
  }

}

@media (max-width: 768px) {
  .collab-auth-shell {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fbfbfc;
  }

  .collab-auth-shell > .collab-auth-brand {
    display: none;
  }

  .collab-auth-shell > .collab-auth-form-column {
    width: 100%;
    min-height: 100%;
    align-items: flex-start;
    padding: 24px;
    background: #fbfbfc;
    border-left: 0;
  }

  .collab-auth-form-stage {
    width: min(420px, 100%);
    margin-block: 0;
    padding-block: 12px 32px;
  }

  .collab-auth-shell[data-auth-mode="login"] .collab-auth-form-stage {
    transform: none;
  }

  .collab-auth-mobile-logo {
    display: flex;
    width: 160px;
    margin: 0 0 36px;
    align-items: center;
  }

  .collab-auth-mobile-logo .mepos-auth-logo-image {
    filter: none;
  }
}

@media (max-width: 420px) {
  .collab-auth-shell > .collab-auth-form-column {
    padding-inline: 24px;
  }

  .collab-auth-mobile-logo {
    width: 148px;
    margin-bottom: 28px;
  }

}

@media (max-width: 680px) {
  .collab-header-label,
  .collab-workspace-button svg {
    display: none;
  }

  .collab-header-button {
    width: 34px;
    justify-content: center;
    padding: 6px;
  }

  .collab-form-grid,
  .collab-choice-grid,
  .collab-detail-meta {
    grid-template-columns: 1fr;
  }

  .collab-dialog .collab-dialog-body {
    padding: 17px;
  }

  .collab-dialog-footer {
    padding: 12px 17px;
  }

  .collab-member-row {
    grid-template-columns: 1fr 1fr;
  }

  .collab-member-row .collab-item-copy {
    grid-column: 1 / -1;
  }

  .collab-list-item,
  .collab-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .collab-item-actions {
    width: 100%;
  }

  .collab-item-actions .collab-mini-button {
    min-height: 40px;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collab-auth-shell {
    scroll-behavior: auto;
  }

  .collab-auth-shell .collab-auth-card *,
  .collab-auth-shell .collab-auth-card *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Company collaboration workspace */

.collab-company-space-button {
  color: #092d3e;
  background: #f4fbfd;
  border-color: #cce4ec;
}

.collab-company-space-button:hover {
  background: #fff;
}

body.collab-company-space-open.opa-panel-open main,
body.collab-company-space-open main {
  margin-right: 0 !important;
}

body.collab-company-space-open .opa-root {
  display: none !important;
}

.collab-company-view[hidden] {
  display: none;
}

.collab-company-view {
  min-height: calc(100dvh - 58px);
  background: #eef3f5;
}

.collab-company-frame {
  width: min(1540px, calc(100% - 36px));
  padding-block: 24px 44px;
}

.collab-company-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.collab-company-heading h1 {
  margin: 2px 0 0;
  color: var(--navy-950);
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -0.045em;
}

.collab-company-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.collab-company-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 5px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.collab-company-tabs button {
  min-width: 88px;
  min-height: 38px;
  flex: 1 0 auto;
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-company-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--navy-900);
}

.collab-company-body {
  min-height: 570px;
}

.collab-company-home-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(440px, 2fr) minmax(250px, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.collab-company-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.collab-company-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.collab-company-card-heading h2,
.collab-company-overview h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 16px;
  letter-spacing: -0.025em;
}

.collab-company-card-heading p,
.collab-company-overview > p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.collab-company-overview {
  display: flex;
  flex-direction: column;
}

.collab-company-overview > .button {
  width: 100%;
  margin-top: auto;
}

.collab-company-people-compact,
.collab-company-summary-list,
.collab-company-member-grid {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.collab-company-people-compact {
  display: grid;
  gap: 9px;
}

.collab-company-people-compact li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-company-people-compact li > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-home-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.collab-company-summary-card .collab-empty {
  min-height: 90px;
  padding: 16px;
}

.collab-company-summary-list {
  display: grid;
  gap: 7px;
}

.collab-company-summary-list li {
  overflow: hidden;
  padding-bottom: 7px;
  color: var(--navy-900);
  border-bottom: 1px solid #edf1f3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-conversation {
  display: flex;
  min-height: 620px;
  flex-direction: column;
}

.collab-company-conversation:not(.is-home) {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.collab-company-load-older {
  display: block;
  width: max-content;
  align-self: center;
  min-height: 30px;
  margin: 2px auto 7px;
  padding: 5px 12px;
  color: var(--navy-700);
  background: #f5f8f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-company-load-older:hover,
.collab-company-load-older:focus-visible {
  color: var(--blue-700);
  border-color: #9dcedf;
  outline: none;
}

.collab-company-message-list {
  display: flex;
  min-height: 330px;
  max-height: calc(100dvh - 360px);
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  padding: 4px 5px 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #526a73 transparent;
  scrollbar-width: thin;
}

.collab-company-message-list::-webkit-scrollbar,
.collab-company-composer textarea::-webkit-scrollbar,
.collab-company-note-editor textarea::-webkit-scrollbar,
.collab-company-note-buttons::-webkit-scrollbar,
.collab-company-todo-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.collab-company-message-list::-webkit-scrollbar-track,
.collab-company-composer textarea::-webkit-scrollbar-track,
.collab-company-note-editor textarea::-webkit-scrollbar-track,
.collab-company-note-buttons::-webkit-scrollbar-track,
.collab-company-todo-list::-webkit-scrollbar-track {
  background: transparent;
}

.collab-company-message-list::-webkit-scrollbar-thumb,
.collab-company-composer textarea::-webkit-scrollbar-thumb,
.collab-company-note-editor textarea::-webkit-scrollbar-thumb,
.collab-company-note-buttons::-webkit-scrollbar-thumb,
.collab-company-todo-list::-webkit-scrollbar-thumb {
  background: #526a73;
  border-radius: 999px;
}

.collab-company-message {
  padding: 12px 10px;
  border-radius: 8px;
}

.collab-company-message:hover {
  background: #f7fafb;
}

.collab-company-message header,
.collab-company-message-identity,
.collab-company-message-actions,
.collab-company-reply-banner {
  display: flex;
  align-items: center;
}

.collab-company-message header {
  justify-content: space-between;
  gap: 12px;
}

.collab-company-message-identity {
  min-width: 0;
  gap: 8px;
}

.collab-company-message-identity strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-message time {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 8px;
}

.collab-company-message-copy {
  margin: 7px 0 0 29px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.collab-company-message-reply {
  margin: 7px 0 0 29px;
  padding: 6px 8px;
  overflow: hidden;
  color: var(--muted);
  background: #f1f5f6;
  border-left: 2px solid var(--blue-500);
  border-radius: 4px;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-message-actions {
  gap: 12px;
  margin: 7px 0 0 29px;
  opacity: 0.1;
  transition: opacity 120ms ease;
}

.collab-company-message:hover .collab-company-message-actions,
.collab-company-message:focus-within .collab-company-message-actions {
  opacity: 1;
}

.collab-company-composer {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.collab-company-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.collab-company-composer textarea,
.collab-company-note-editor textarea,
.collab-company-todo textarea {
  resize: none;
  scrollbar-color: #526a73 transparent;
  scrollbar-width: thin;
}

.collab-company-composer textarea {
  width: 100%;
  min-height: 52px;
  max-height: 180px;
  padding: 14px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}

.collab-company-composer textarea:focus,
.collab-company-note-editor input:focus,
.collab-company-note-editor textarea:focus,
.collab-company-todo input:focus,
.collab-company-todo textarea:focus,
.collab-company-todo select:focus,
.collab-company-todo-create input:focus,
.collab-company-todo-create select:focus {
  border-color: var(--blue-500);
  outline: 3px solid rgba(27, 134, 177, 0.14);
}

.collab-company-reply-banner {
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--blue-50);
  border-radius: 6px;
  font-size: 9px;
}

.collab-company-work-panel,
.collab-company-members {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.collab-company-scope {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-alt);
  border-radius: 7px;
}

.collab-company-scope button {
  min-height: 31px;
  padding: 5px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 9px;
  font-weight: var(--workspace-font-weight-regular, 400);
  cursor: pointer;
}

.collab-company-scope button[aria-pressed="true"] {
  color: var(--navy-950);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.collab-company-todo-create {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.65fr) 145px auto;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--blue-50);
  border: 1px solid #c7e0ea;
  border-radius: 9px;
}

.collab-company-todo-create input,
.collab-company-todo-create select,
.collab-company-todo input,
.collab-company-todo select,
.collab-company-todo textarea,
.collab-company-note-editor input,
.collab-company-note-editor textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
}

.collab-company-todo-list {
  display: grid;
  max-height: calc(100dvh - 350px);
  gap: 9px;
  overflow-y: auto;
  scrollbar-color: #526a73 transparent;
  scrollbar-width: thin;
}

.collab-company-todo {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #fbfcfc;
  border: 1px solid #e1e8ea;
  border-radius: 8px;
}

.collab-company-todo-heading,
.collab-company-todo-fields,
.collab-company-todo-actions {
  display: grid;
  gap: 8px;
  align-items: center;
}

.collab-company-todo-heading {
  grid-template-columns: minmax(0, 1fr) 128px;
}

.collab-company-todo-fields {
  grid-template-columns: minmax(180px, 0.75fr) 145px minmax(180px, 1fr);
}

.collab-company-todo-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.collab-company-todo-actions {
  grid-template-columns: 1fr auto auto;
  justify-items: end;
}

.collab-company-notes {
  display: grid;
  width: min(1220px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(230px, 0.72fr) minmax(440px, 2fr);
  gap: 18px;
  margin-inline: auto;
}

.collab-company-note-list {
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.collab-company-note-buttons {
  display: grid;
  max-height: 545px;
  gap: 7px;
  overflow-y: auto;
  scrollbar-color: #526a73 transparent;
  scrollbar-width: thin;
}

.collab-company-note-button {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 10px;
  color: var(--navy-900);
  text-align: left;
  background: #f8fafb;
  border: 1px solid #e3eaec;
  border-radius: 7px;
  cursor: pointer;
}

.collab-company-note-button[data-active="true"] {
  background: var(--blue-50);
  border-color: #9dcedf;
}

.collab-company-note-button strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-note-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-note-editor {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.collab-company-note-editor textarea {
  min-height: 420px;
  line-height: 1.65;
}

.collab-company-note-pin {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  color: var(--navy-900);
  font-size: 10px;
  font-weight: var(--workspace-font-weight-regular, 400);
}

.collab-company-note-pin input {
  width: 16px;
  min-height: 16px;
}

.collab-company-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.collab-company-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.collab-company-member-grid li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid #e2e9ec;
  border-radius: 8px;
}

.collab-company-member-grid li > div {
  min-width: 0;
}

.collab-company-member-grid strong,
.collab-company-member-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-company-member-grid strong {
  color: var(--navy-900);
  font-size: 10px;
}

.collab-company-member-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1100px) {
  .collab-company-home-grid {
    grid-template-columns: minmax(180px, 0.7fr) minmax(430px, 2fr);
  }

  .collab-company-home-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collab-company-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .collab-company-frame {
    width: min(100% - 22px, 1540px);
    padding-top: 15px;
  }

  .collab-company-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .collab-company-heading .button {
    width: 100%;
  }

  .collab-company-home-grid,
  .collab-company-notes {
    grid-template-columns: 1fr;
  }

  .collab-company-overview {
    display: none;
  }

  .collab-company-home-rail {
    grid-column: auto;
  }

  .collab-company-note-list {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .collab-company-note-buttons {
    max-height: 220px;
  }

  .collab-company-todo-create {
    grid-template-columns: 1fr 1fr;
  }

  .collab-company-todo-fields {
    grid-template-columns: 1fr 1fr;
  }

  .collab-company-todo-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .collab-company-space-button {
    width: auto;
    padding-inline: 8px;
  }

  .collab-company-space-button::before {
    content: "회사";
  }

  .collab-company-space-button {
    font-size: 0;
  }

  .collab-company-space-button::before {
    font-size: 10px;
  }

  .collab-company-tabs {
    margin-inline: -2px;
    overflow-x: visible;
  }

  .collab-company-tabs button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 4px;
    font-size: 10px;
  }

  .collab-company-card {
    padding: 14px;
  }

  .collab-company-home-rail,
  .collab-company-todo-create,
  .collab-company-todo-heading,
  .collab-company-todo-fields,
  .collab-company-member-grid {
    grid-template-columns: 1fr;
  }

  .collab-company-conversation {
    min-height: 530px;
  }

  .collab-company-message-list {
    max-height: 52dvh;
  }

  .collab-company-message-copy,
  .collab-company-message-reply,
  .collab-company-message-actions {
    margin-left: 0;
  }

  .collab-company-message-actions {
    opacity: 1;
  }

  .collab-company-composer-row {
    grid-template-columns: 1fr;
  }

  .collab-company-composer-row .button {
    width: 100%;
  }

  .collab-company-todo-create > .button {
    width: 100%;
  }

  .collab-company-todo-meta {
    grid-column: auto;
  }

  .collab-company-todo-actions {
    grid-template-columns: 1fr 1fr;
  }

  .collab-company-todo-actions .collab-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .collab-company-note-editor textarea {
    min-height: 310px;
  }
}
