.admin-panel {
  position: fixed;
  z-index: 10000;
  top: 65px;
  right: 24px;
  bottom: 65px;
  width: 50vw;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  padding: 0 6px 6px;
  background: linear-gradient(135deg, #daf4f4f2, #9ac9d9ed);
  border: 1px solid #efffff;
  border-radius: 7px;
  box-shadow: 0 12px 45px #183b5a66;
  backdrop-filter: blur(22px);
  font:
    12px "Segoe UI",
    sans-serif;
  color: #294c51;
}
.admin-header {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 9px;
  flex-shrink: 0;
}
.admin-header strong {
  font-weight: 500;
}
.admin-close {
  align-self: flex-start;
  border: 1px solid #90594b;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#edb0a2, #c06c59);
  color: white;
  width: 42px;
  height: 25px;
  font-size: 18px;
}
.admin-body {
  min-height: 0;
  flex: 1;
  background: #f7faf7;
  border: 1px solid #a2bdc0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.admin-intro {
  font-size: 12px;
  line-height: 1.7;
  color: #7b8e88;
  margin: 22px;
}
.admin-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 22px 24px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #e1e9e3;
}
.admin-field > span {
  font-size: 12px;
  color: #446455;
  line-height: 1.5;
}
.admin-field input,
.admin-field textarea,
.admin-tools input,
.admin-tools select {
  width: 100%;
  font:
    12px "Segoe UI",
    sans-serif;
  padding: 10px;
  border: 1px solid #bed0c7;
  border-radius: 4px;
  background: #fff;
  color: #2d4941;
  outline-offset: 2px;
}
.admin-field textarea {
  resize: vertical;
  min-height: 56px;
  line-height: 1.6;
}
.admin-field.changed textarea {
  border-color: #73a9b9;
  background: #f4fcfc;
}
.admin-key {
  font-size: 9px;
  color: #94a59c;
  overflow-wrap: anywhere;
}
.admin-primary,
.admin-secondary {
  font:
    12px "Segoe UI",
    sans-serif;
  padding: 9px 13px;
  border-radius: 4px;
  border: 1px solid #abc0b8;
  background: linear-gradient(#fff, #e4ede6);
  color: #3e6758;
}
.admin-primary {
  background: linear-gradient(#81b7b1, #568d8d);
  border-color: #5d8f91;
  color: #fff;
}
.admin-primary:disabled {
  opacity: 0.45;
  cursor: default;
}
.admin-secondary.active {
  background: #d4e9e7;
}
.admin-tools {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border-bottom: 1px solid #dbe6dd;
  flex-shrink: 0;
}
.admin-tools input {
  grid-column: 1/-1;
}
.admin-tools select {
  font-size: 11px;
}
.admin-tools button {
  font-size: 11px;
}
.admin-fields {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 0 16px;
  scrollbar-width: thin;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 14px;
  background: #edf4ed;
  border-top: 1px solid #d9e3d9;
  flex-shrink: 0;
}
.admin-counter {
  width: 100%;
  font-size: 10px;
  color: #7e9686;
  margin-bottom: 2px;
}
.admin-account {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 9px 12px;
  background: #edf4ed;
  flex-shrink: 0;
}
.admin-account button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font:
    10px "Segoe UI",
    sans-serif;
  color: #6a8a7c;
}
.admin-account button:hover {
  text-decoration: underline;
}
.admin-status {
  font-size: 11px;
  line-height: 1.5;
  margin: 7px 8px 2px;
  min-height: 17px;
  flex-shrink: 0;
  white-space: pre-line;
}
.admin-status.error {
  color: #914435;
}
.admin-project-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #dbe6dd;
  background: #edf4ed;
  flex-shrink: 0;
}
.admin-project-toolbar select {
  min-width: 0;
  padding: 8px;
  border: 1px solid #bed0c7;
  border-radius: 4px;
  background: #fff;
  color: #2d4941;
  font: 11px "Segoe UI", sans-serif;
}
.admin-project-host {
  min-height: 0;
  overflow: auto;
  padding: 0 18px 18px;
}
.admin-project-form {
  display: flex;
  flex-direction: column;
}
.admin-file-field input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #bed0c7;
  border-radius: 4px;
  background: #fff;
  color: #527064;
  font-size: 10px;
}
.admin-current-file {
  color: #397986;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.admin-file-remove {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6c8076;
  font-size: 10px;
}
.admin-file-remove input {
  width: auto;
  padding: 0;
  border: 0;
}
.admin-project-preview {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border: 1px solid #d6e2dc;
  background: #eef4ef;
}
.admin-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.admin-tag-suggestions button {
  border: 1px solid #cadbd2;
  border-radius: 12px;
  padding: 4px 8px;
  background: #f4faf6;
  color: #5e7c6e;
  font-size: 9px;
}
.admin-html-field textarea {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  tab-size: 2;
}
.admin-html-tools {
  display: flex;
  gap: 7px;
}
.admin-project-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
}
.admin-danger {
  padding: 9px 13px;
  border: 1px solid #b98578;
  border-radius: 4px;
  background: linear-gradient(#fff, #f0d9d3);
  color: #874e43;
  font: 12px "Segoe UI", sans-serif;
}
.admin-visits-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #dbe6dd;
  background: #edf4ed;
  flex-shrink: 0;
}
.admin-visits-toolbar button:last-child {
  margin-left: auto;
}
.admin-visits-host {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0 14px 14px;
}
.admin-visits-total {
  margin: 14px 0 10px;
  color: #527064;
  font-size: 11px;
}
.admin-visits-table-wrap {
  overflow: auto;
  border: 1px solid #d4e0da;
  background: #fff;
}
.admin-visits-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}
.admin-visits-table th,
.admin-visits-table td {
  padding: 8px 9px;
  border-right: 1px solid #e1e9e4;
  border-bottom: 1px solid #e1e9e4;
  text-align: left;
  vertical-align: top;
}
.admin-visits-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eaf3ed;
  color: #456559;
  font-weight: 600;
}
.admin-visits-table tr:nth-child(even) td {
  background: #f8fbf9;
}
.admin-visits-table th:first-child,
.admin-visits-table td:first-child {
  width: 155px;
}
.admin-visit-ip {
  width: 135px;
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
  user-select: text;
}
.admin-user-agent {
  color: #687d73;
  overflow-wrap: anywhere;
  user-select: text;
}
.admin-visits-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 0;
  color: #6d8378;
  font-size: 10px;
}
.admin-visits-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.admin-picking
  :is(
    [data-text],
    .window-content h2,
    .window-content h3,
    .window-content p,
    .skill-chips span
  ):hover {
  outline: 2px dashed #e8bd55;
  outline-offset: 3px;
  cursor: crosshair;
}
.admin-picking {
  cursor: crosshair;
}
@media (max-width: 700px) {
  .admin-panel {
    right: 10px;
    top: 57px;
    bottom: 56px;
    width: calc(100vw - 20px);
  }
  .admin-tools {
    padding: 10px;
  }
  .admin-fields {
    padding: 0 12px;
  }
  .admin-project-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .admin-project-toolbar select {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .admin-project-host {
    padding: 0 12px 14px;
  }
}

.start-main > .admin-search-result {
  font-size: 12px;
  padding: 12px 8px;
}
