.secret-note {
  color: #eee;
}

.secret-head {
  margin-bottom: 16px;
}

.secret-head p,
.secret-help {
  margin: 0;
  color: #aaa;
  line-height: 1.5;
}

.secret-notice,
.secret-error {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #3f6f3a;
  background: #20351f;
  color: #d8ffd0;
}

.secret-error {
  border-color: #8d3b3b;
  background: #3a1f1f;
  color: #ffd7d7;
}

.secret-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.secret-panel,
.secret-card,
.secret-empty {
  border: 1px solid #444;
  background: #1f1f1c;
}

.secret-panel {
  padding: 16px;
}

.secret-panel h2,
.secret-card h2 {
  color: #fff;
}

.secret-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secret-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #bbb;
  font-size: 0.9rem;
}

.secret-form input[type="text"],
.secret-form textarea,
.secret-filter input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #272822;
  color: #eee;
}

.secret-form textarea {
  resize: vertical;
  min-height: 240px;
  line-height: 1.5;
}

.secret-check,
.secret-inline-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.secret-check input,
.secret-inline-check input {
  width: auto;
}

.secret-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.secret-actions button {
  width: fit-content;
  padding: 8px 13px;
  border: 0;
  border-radius: 3px;
  background: #61dafb;
  color: #272822;
  cursor: pointer;
}

.secret-actions a {
  padding: 8px 13px;
  border-radius: 3px;
  background: #555;
  color: #fff;
  text-decoration: none;
}

.secret-filter {
  margin: 0 0 14px;
}

.secret-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.secret-empty {
  padding: 18px;
  color: #aaa;
}

.secret-card {
  padding: 14px;
}

.secret-card.is-important {
  border-color: #8bd46e;
}

.secret-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.secret-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.secret-card-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 3px;
  background: #8bd46e;
  color: #1f1f1c;
  font-size: 0.75rem;
  font-weight: 700;
}

.secret-tags {
  margin-top: 8px;
  color: #8fd7ff;
  font-size: 0.85rem;
}

.secret-card pre {
  margin: 12px 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ddd;
  font: inherit;
  line-height: 1.5;
}

.secret-meta {
  color: #888;
  font-size: 0.8rem;
}

.secret-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}

.secret-card-actions form {
  display: inline;
  margin: 0;
}

.secret-card-actions button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .secret-layout {
    grid-template-columns: 1fr;
  }
}
