.oa-contacts-page {
  background: #f0f4f8;
}

.contacts-chrome {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.contacts-chrome-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacts-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contacts-logo {
  height: 32px;
  width: auto;
}

.contacts-chrome-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.contacts-chrome-user {
  margin-left: auto;
  font-size: 13px;
  color: #666;
}

.contacts-body {
  min-height: calc(100vh - 90px);
}

.contacts-main {
  min-height: 640px;
}

.contacts-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.oa-org-tree {
  border-right: 1px solid var(--border);
  padding: 12px 8px 20px;
  overflow: auto;
  background: #fafafa;
}

.oa-tree-node {
  user-select: none;
}

.oa-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

.oa-tree-row:hover {
  background: #e6f4ff;
}

.oa-tree-row.is-active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 600;
}

.oa-tree-row.is-digital.is-active,
.oa-tree-row.is-digital {
  color: #1677ff;
}

.oa-tree-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #8c8c8c;
  display: inline-flex;
}

.oa-tree-caret.is-empty {
  visibility: hidden;
}

.oa-tree-children {
  padding-left: 14px;
}

.oa-tree-count {
  margin-left: auto;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 400;
  flex-shrink: 0;
}

.oa-tree-name {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.oa-contacts-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.oa-contacts-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  flex-wrap: wrap;
}

.oa-search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.oa-search-field input {
  width: 260px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
}

.oa-search-field input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.oa-btn-primary,
.oa-btn-default {
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.oa-btn-primary {
  border: none;
  background: #1677ff;
  color: #fff;
}

.oa-btn-default {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
}

.oa-privacy-tip {
  margin-left: auto;
  font-size: 12px;
  color: #ad6800;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 4px 10px;
}

.oa-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 8px 16px;
}

.oa-contacts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.oa-contacts-table th,
.oa-contacts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: top;
}

.oa-contacts-table th {
  background: #fafafa;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}

.oa-contacts-table tbody tr:hover {
  background: #f5f9ff;
}

.oa-contacts-table .is-digital-row td:first-child {
  color: #1677ff;
  font-weight: 600;
}

.oa-type-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.oa-type-tag.qa {
  background: #e6f4ff;
  color: #1677ff;
}

.oa-type-tag.embed {
  background: #f5f5f5;
  color: #8c8c8c;
}

.oa-eye-btn {
  border: none;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  padding: 0;
}

.oa-intro {
  max-width: 280px;
  color: #666;
  line-height: 1.5;
}

.oa-empty {
  padding: 48px;
  text-align: center;
  color: #999;
}

@media (max-width: 1100px) {
  .contacts-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
