:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #18313b;
  background: #f3f6f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
input,
button {
  font: inherit;
}
a {
  color: #0b7168;
}
.admin-shell {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px 40px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-heading p {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #147a6b;
  font-weight: 800;
}
.admin-heading h1 {
  font-size: 26px;
  margin: 8px 0;
}
.admin-heading a {
  font-size: 13px;
}
.admin-card {
  background: white;
  border: 1px solid #dce7e1;
  border-radius: 16px;
  padding: 24px;
  margin: 18px 0;
}
.login-card {
  max-width: 440px;
  margin: 35px auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.color-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
h2 {
  font-size: 17px;
  margin: 25px 0 18px;
}
h2:first-child {
  margin-top: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}
input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cddbd4;
  background: #fcfefd;
  border-radius: 8px;
  padding: 11px;
  color: #173e3b;
}
input[type="color"] {
  height: 45px;
  padding: 4px;
}
input[type="file"] {
  font-size: 12px;
}
button {
  background: #0b615e;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 750;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  background: #084e4b;
}
button.secondary {
  background: #e0eeea;
  color: #174c43;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #80cbb6;
  outline-offset: 3px;
}
.login-card label {
  margin-bottom: 18px;
}
.notice {
  padding: 14px 18px;
  background: #e6f4ea;
  border: 1px solid #bedcc7;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.notice.error {
  background: #fff0ec;
  border-color: #edc0b3;
  color: #8e382b;
}
.help {
  font-size: 12px;
  color: #5d7777;
  line-height: 1.6;
}
.asset-preview {
  display: block;
  max-width: 100%;
  height: 60px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  background: #edf3ef;
  border-radius: 8px;
}
.share-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.share-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #edf3ef;
}
.share-controls {
  display: grid;
  gap: 14px;
}
.share-controls .help { margin: 0; }
.share-editor {
  border: 1px solid #dce7e1;
  border-radius: 10px;
  padding: 11px 13px;
}
.share-editor summary { color: #0b615e; font-size: 13px; font-weight: 750; cursor: pointer; }
.share-editor[open] { display: grid; gap: 12px; }
.share-editor canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: #edf3ef; cursor: grab; touch-action: none; }
.share-editor canvas:active { cursor: grabbing; }
.share-editor input[type="range"] { padding: 0; }
.share-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-edit-actions button { font-size: 12px; padding: 9px 11px; }
fieldset {
  border: 1px solid #dce7e1;
  border-radius: 10px;
  padding: 15px;
  min-width: 0;
}
legend {
  font-weight: 700;
  font-size: 13px;
}
.check {
  flex-direction: row;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  margin-top: 12px;
}
.check input {
  width: auto;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.admin-card > button {
  margin-top: 20px;
}
.actions a {
  font-size: 13px;
}
.logout-form {
  margin-top: 25px;
}
@media (max-width: 600px) {
  .admin-shell {
    margin-top: 18px;
    padding: 0 14px 30px;
  }
  .admin-heading {
    align-items: start;
  }
  .admin-heading h1 {
    font-size: 22px;
  }
  .admin-heading a {
    white-space: nowrap;
    font-size: 12px;
  }
  .admin-card {
    padding: 18px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .share-settings { grid-template-columns: 1fr; }
  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .actions {
    flex-wrap: wrap;
  }
}
