/* Local editing chrome. The manual itself keeps the php.net styles. */

.local-tools {
  position: fixed;
  z-index: 2000;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #1b1b1b;
  color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.local-tools[hidden] {
  display: none;
}

.local-tools button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: #4f5b93;
}

.local-tools button:hover {
  background: #3d4978;
}

.local-tools button.local-ghost {
  background: transparent;
  color: #ddd;
}

.local-tools button.local-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.local-tools button.is-on {
  background: #693;
}

.local-tab {
  position: fixed;
  z-index: 2000;
  right: 8px;
  bottom: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: "Fira Sans", sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.16);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.local-tab:hover,
.local-tab:focus-visible {
  color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.local-hint {
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
}

body.local-editing #layout-content a {
  cursor: text;
}

.local-dialog {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  font-family: "Fira Sans", sans-serif;
}

.local-dialog[hidden] {
  display: none;
}

.local-dialog form {
  width: min(720px, 100%);
  padding: 20px;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.local-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.local-dialog h2:after {
  display: none;
}

.local-dialog label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: #444;
}

.local-dialog input,
.local-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: 14px/1.45 "Fira Mono", ui-monospace, monospace;
  color: #111;
  background: #fff;
}

.local-dialog textarea {
  min-height: 220px;
  resize: vertical;
}

.local-dialog .local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.local-dialog button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: #4f5b93;
}

.local-dialog button.local-ghost {
  background: #e8e8e8;
  color: #222;
}
