:root {
  --page-bg: #061b30;
  --page-background: url('default.jpg');
  --panel-bg: rgba(14, 58, 102, 0.21);
  --panel-border: rgba(186, 226, 255, 0.36);
  --text: #154779;
  --text-muted: #b9d7f0;
  --blue-950: #061b30;
  --blue-700: #185182;
  --blue-600: #0778b0;
  --blue-500: #2f80d0;
  --blue-400: #5aa9ef;
  --blue-100: #ccd8e1;
  --delete: #9a2d2d;
  --accent: #66e0ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 42px rgba(4, 23, 42, 0.28);
  --shadow-card: 0 12px 28px rgba(4, 23, 42, 0.22);
  --delete-soft: #fddada;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  /*! background: var(--page-bg); */
  /*! color: var(--text); */
  font-family: "Dosis", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

body::before {
  background: var(--page-background) center center / cover no-repeat;
  content: "";
  inset: 0;
  position: fixed;
  z-index: -2;
}

body::after {
  /*! background: rgba(6, 27, 48, 0.34); */
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

li {
  list-style: none;
}

.screen-reader-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

main {
  margin: 0 auto;
  width: min(980px, 92vw);
}

footer {
  color: rgba(247, 251, 255, 0.78);
  display: flex;
  font-size: 0.8rem;
  justify-content: center;
  margin-top: 50px;
  padding: 8px;
}

nav.kasite-toolbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(113, 168, 225, 0.13));
  border-bottom: 1px solid rgba(155, 210, 255, 0.26);
  backdrop-filter: blur(18px) saturate(150%);
  color: var(--blue-600);
}

nav.kasite-toolbar .kasite-toolbar__tools .kasite-toolbar__action-title,
nav.kasite-toolbar .kasite-toolbar__title {
  color: var(--blue-600);
  text-shadow: none;
}

.kasite-toolbar__action-link:hover,
.kasite-toolbar__action-link:focus-visible {
  background: rgba(90, 169, 239, 0.18);
  color: var(--white);
  outline: none;
}

.logs {
  background: rgba(6, 27, 48, 0.82);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 95px auto -70px;
  padding: 12px 16px;
}

.logs li {
  color: var(--blue-100);
  line-height: 1.45;
}

.kalert {
  background: rgba(6, 27, 48, 0.96);
  border-top: 1px solid var(--panel-border);
  bottom: -160px;
  box-shadow: 0 -12px 32px rgba(4, 23, 42, 0.3);
  color: var(--blue-100);
  font-weight: 800;
  left: 0;
  padding: 15px;
  position: fixed;
  right: 0;
  text-align: center;
  transition: bottom 180ms ease;
  z-index: 1200;
}

.kalert.open {
  bottom: 0;
}

#modale {
  align-items: center;
  background: rgba(6, 27, 48, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1000;
}

#modale.open {
  display: flex;
}

#modale-content {
  background: rgba(6, 27, 48, 0.94);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(4, 23, 42, 0.46);
  max-height: min(760px, 90vh);
  overflow-y: auto;
  padding: 20px;
  width: min(520px, 100%);
}

.home {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /*! margin-top: 95px; */
}

.home-header {
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  background:
    linear-gradient(135deg, rgba(234, 246, 255, 0.28), rgba(234, 246, 255, 0.08) 38%, rgba(6, 27, 48, 0.18)),
    rgba(6, 27, 48, 0.16);
  border: 1px solid rgba(234, 246, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(6, 27, 48, 0.16),
    0 18px 42px rgba(4, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 18px 22px;
  position: relative;
  text-align: center;
  margin-top: 30px;
}

.home-header::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 28%, transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.home-header::after {
  background: linear-gradient(90deg, transparent, rgba(102, 224, 255, 0.3), transparent);
  content: "";
  height: 1px;
  left: 10%;
  pointer-events: none;
  position: absolute;
  right: 10%;
  top: 1px;
  z-index: 0;
}

.home-header > * {
  position: relative;
  z-index: 1;
}

.home-header__date {
  color: var(--white);
  font-size: 1.15rem;
  /*! text-transform: capitalize; */
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 2px 12px rgba(4, 23, 42, 0.62);
}

.home-header__saint {
  color: var(--white);
  font-size: 0.90rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 2px 10px rgba(4, 23, 42, 0.58);
}

.home-header__saint-name {
  color: var(--blue-700);
  font-weight: 900;
  background: var(--accent);
  padding: 0px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(4, 23, 42, 0.58);
  text-shadow: none;
}

.home-birthdays {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 24px;
}

.home-birthdays__sentence {
  color: rgba(247, 251, 255, 0.92);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(4, 23, 42, 0.58);
}

.home-birthdays ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.home-birthdays li {
  align-items: center;
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  background: rgba(6, 27, 48, 0.22);
  border: 1px solid rgba(234, 246, 255, 0.18);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  padding: 4px 10px;
}

.home-birthdays__date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.home-birthdays__name {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  text-shadow: none;
  margin: 0 4px;
  color: var(--blue-700);
  font-weight: 900;
  background: var(--accent);
  padding: 0px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(4, 23, 42, 0.58);
}

.home-header .home-empty {
  color: rgba(247, 251, 255, 0.88);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(4, 23, 42, 0.58);
}

.home-empty {
  color: var(--blue-700);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.home-search form {
  display: block;
}

.home-search__field {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(4, 23, 42, 0.14);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  min-height: 56px;
  position: relative;
}

.home-search__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 224, 255, 0.32), 0 8px 24px rgba(4, 23, 42, 0.14);
}

.home-search__browser-menu {
  align-self: stretch;
  position: relative;
}

.home-search__browser-toggle,
.home-search__browser-option {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.home-search__browser-toggle {
  background: var(--white);
  border-radius: 8px 0 0 8px;
  border-right: 1px solid rgba(11, 42, 74, 0.12);
  height: 100%;
  min-height: 56px;
  padding: 0;
  position: relative;
  width: 56px;
}

.home-search__browser-toggle::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--blue-700);
  bottom: 9px;
  content: "";
  position: absolute;
  right: 8px;
}

.home-search__browser-toggle img,
.home-search__browser-option img {
  display: block;
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.home-search__browser-list {
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
  left: 0;
  min-width: 180px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 20;
}

.home-search__browser-list[hidden] {
  display: none;
}

.home-search__browser-option {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--blue-950);
  gap: 10px;
  height: 44px;
  justify-content: flex-start;
  padding: 0 12px;
  width: 100%;
}

.home-search__browser-option img {
  flex: 0 0 auto;
}

.home-search__browser-name {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search__browser-toggle:hover,
.home-search__browser-toggle:focus-visible,
.home-search__browser-option:hover,
.home-search__browser-option:focus-visible {
  outline: none;
}

.home-search__browser-toggle:hover,
.home-search__browser-toggle:focus-visible {
  background: #dceefe;
}

.home-search__browser-option:hover,
.home-search__browser-option:focus-visible,
.home-search__browser-option[aria-selected="true"] {
  border-color: var(--accent);
}

.home-search input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--blue-950);
  font: inherit;
  font-size: 1.15rem;
  min-height: 56px;
  padding: 0 18px;
  width: 100%;
}

.home-search input[type="search"]::placeholder {
  color: #6b86a0;
}

.home-search input[type="search"]:focus {
  outline: none;
}

.home-search__submit {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  min-height: 56px;
  padding: 0;
  transition: background-color 160ms ease;
  width: 48px;
}

.home-search__submit-icon {
  display: block;
  height: 18px;
  position: relative;
  width: 18px;
}

.home-search__submit-icon::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 1px;
  position: absolute;
  top: 1px;
  width: 10px;
}

.home-search__submit-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 12px;
  position: absolute;
  top: 12px;
  transform: rotate(-45deg);
  transform-origin: top center;
  width: 2px;
}

.home-search__submit:hover,
.home-search__submit:focus-visible {
  background: var(--panel-border);
  outline: none;
  color: var(--blue-500);
}

.home-search__submit:active {
  background: var(--blue-700);
}

.home-sites__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.home-sites__grid--sorting {
  user-select: none;
}

.home-site {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  color: var(--blue-950);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 128px;
  padding: 16px 12px;
  text-align: center;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.home-site:hover,
.home-site:focus-visible {
  box-shadow: 0 18px 36px rgba(4, 23, 42, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.home-site--edit {
  appearance: none;
  cursor: grab;
  font: inherit;
  touch-action: none;
  width: 100%;
}

.home-site--edit:active {
  cursor: grabbing;
}

.home-site--dragging {
  opacity: 0.46;
  transform: scale(0.96);
}

.home-sites__grid--saving .home-site--edit {
  cursor: progress;
}

.home-site__icon {
  align-items: center;
  background: var(--blue-100);
  border: 1px solid rgba(47, 128, 208, 0.2);
  border-radius: 8px;
  color: var(--blue-700);
  display: flex;
  flex: 0 0 auto;
  font-size: 2rem;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.home-site__icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.home-site__title {
  display: -webkit-box;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.18;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.edit-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 95px;
}

.edit-page__header {
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.edit-page__header::before {
  background: linear-gradient(90deg, var(--blue-700),var(--blue-950));
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.edit-page__eyebrow {
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.edit-page h1,
.edit-page h2 {
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}

.edit-page h1 {
  font-size: 1.8rem;
}

.edit-page__description {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.edit-page h2 {
  font-size: 1.2rem;
}

.edit-page__back {
  background: rgba(234, 246, 255, 0.12);
  border: 1px solid rgba(234, 246, 255, 0.22);
  border-radius: 8px;
  color: var(--blue-100);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 10px 14px;
}

.edit-page__back:hover,
.edit-page__back:focus-visible {
  background: rgba(90, 169, 239, 0.2);
  color: var(--white);
  outline: none;
}

.edit-form,
.edit-list,
.edit-settings {
  background: rgba(6, 27, 48, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.edit-form {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 190px auto;
}

.mosaic-url-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.birthday-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.settings-options {
  display: grid;
  gap: 14px;
}

.settings-option {
  align-items: center;
  background: rgba(6, 27, 48, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: var(--blue-100);
  display: grid;
  gap: 16px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 16px;
}

.settings-option:hover,
.settings-option:focus-visible {
  background: rgba(14, 58, 102, 0.82);
  border-color: rgba(102, 224, 255, 0.58);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}

.settings-option__icon {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(47, 128, 208, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  color: var(--blue-700);
  display: flex;
  font-size: 1.3rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.settings-option__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-option__title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.settings-option__description {
  color: var(--text-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.edit-settings {
  align-items: center;
  display: flex;
}

.setting-toggle {
  align-items: center;
  color: var(--blue-100);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 12px;
  line-height: 1.25;
}

.setting-toggle input {
  block-size: 1px;
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.setting-toggle__switch {
  background: rgba(234, 246, 255, 0.18);
  border: 1px solid rgba(234, 246, 255, 0.3);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 28px;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
  width: 50px;
}

.setting-toggle__switch::before {
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(4, 23, 42, 0.26);
  content: "";
  height: 22px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 22px;
}

.setting-toggle input:checked + .setting-toggle__switch {
  background: var(--blue-500);
  border-color: var(--accent);
}

.setting-toggle input:checked + .setting-toggle__switch::before {
  transform: translateX(22px);
}

.setting-toggle input:focus-visible + .setting-toggle__switch {
  box-shadow: 0 0 0 3px rgba(102, 224, 255, 0.32);
}

.setting-toggle input:disabled + .setting-toggle__switch,
.setting-toggle input:disabled ~ .setting-toggle__text {
  cursor: progress;
  opacity: 0.68;
}

.setting-toggle__text {
  overflow-wrap: anywhere;
}

.search-keyword-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.edit-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.edit-form label span {
  color: var(--blue-100);
  font-size: 0.9rem;
  font-weight: 800;
}

.edit-form input {
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(4, 23, 42, 0.14);
  color: var(--blue-950);
  font: inherit;
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.edit-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 224, 255, 0.32), 0 8px 24px rgba(4, 23, 42, 0.14);
  outline: none;
}

.edit-form button {
  align-self: end;
  background: var(--blue-600);
  border: 1px solid var(--blue-400);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(4, 23, 42, 0.26);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 50px;
  padding: 0 22px;
}

.edit-form button:hover,
.edit-form button:focus-visible {
  background: var(--blue-500);
  outline: none;
}

.edit-form button:disabled,
.site-modal-form button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-message {
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
  padding: 12px 16px;
}

.form-message--success {
  background: rgba(102, 224, 255, 0.18);
  border: 1px solid rgba(102, 224, 255, 0.42);
  color: var(--blue-100);
}

.form-message--error {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(185, 54, 54, 0.32);
  color: #9a2d2d;
}

.edit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.birthday-month-nav {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.birthday-month-nav__button {
  align-items: center;
  background: rgba(234, 246, 255, 0.12);
  border: 1px solid rgba(234, 246, 255, 0.22);
  border-radius: 8px;
  color: var(--blue-100);
  display: flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.birthday-month-nav__button:hover,
.birthday-month-nav__button:focus-visible {
  background: rgba(90, 169, 239, 0.2);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}

.birthday-month-nav__label {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
  justify-self: center;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: capitalize;
}

.birthday-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.birthday-alert-row {
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.birthday-alert-row:hover,
.birthday-alert-row:focus-within {
  box-shadow: 0 18px 36px rgba(4, 23, 42, 0.3);
  transform: translateY(-1px);
}

.birthday-alert {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--blue-950);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: minmax(0, 1.6fr) auto auto;
  padding: 13px 16px;
  text-align: left;
  width: 100%;
}

.birthday-alert:focus-visible {
  outline: none;
}

.birthday-alert__date,
.birthday-alert__age {
  color: var(--blue-700);
  font-weight: 900;
  justify-self: end;
}

.birthday-alert__name {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.birthday-alert__age {
  color: var(--blue-950);
}

.search-terms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-term-row {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-term-row:hover,
.search-term-row:focus-within {
  box-shadow: 0 18px 36px rgba(4, 23, 42, 0.3);
  transform: translateY(-1px);
}

.search-term {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--blue-950);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  min-width: 0;
  padding: 13px 0 13px 16px;
  text-align: left;
  width: 100%;
}

.search-term:hover,
.search-term:focus-visible {
  outline: none;
}

.search-term__keyword {
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.search-term__url {
  color: var(--blue-700);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-term__count,
.search-term-delete {
  align-items: center;
  background: var(--blue-100);
  border-radius: 999px;
  color: var(--blue-700);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.search-term-delete {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  margin-right: 16px;
  min-width: 32px;
  color: var(--delete);
  background: none;
  font-size: 1.3em;
}

.search-term-delete:hover,
.search-term-delete:focus-visible {
  background: var(--delete-soft);
  outline: none;
}

.search-term-delete span {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
}

.site-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-modal-form__header {
  align-items: center;
  display: flex;
  gap: 14px;
}

.site-modal-form h2 {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
}

.site-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-modal-form label span {
  color: var(--blue-100);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-modal-form input {
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.16);
  border-radius: 8px;
  color: var(--blue-950);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.site-modal-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 224, 255, 0.32);
  outline: none;
}

.site-modal-form input[readonly] {
  background: rgba(234, 246, 255, 0.88);
  color: var(--blue-700);
}

.site-modal-form input[type="file"] {
  align-items: center;
  cursor: pointer;
  display: flex;
  padding: 12px 14px;
}

.site-modal-form input[type="file"]::file-selector-button {
  background: var(--blue-600);
  border: 1px solid var(--blue-400);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-right: 12px;
  padding: 7px 10px;
}

.site-modal-icon {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(47, 128, 208, 0.2);
  border-radius: 8px;
  color: var(--blue-700);
  display: flex;
  flex: 0 0 auto;
  font-size: 2rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.site-modal-icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.site-modal-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.site-modal-form button {
  background: var(--blue-600);
  border: 1px solid var(--blue-400);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
}

.site-modal-form button[type="button"] {
  background: rgba(234, 246, 255, 0.12);
  color: var(--blue-100);
}

.site-modal-form button:hover,
.site-modal-form button:focus-visible {
  background: var(--blue-500);
  outline: none;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 28px, 980px);
  }

  .edit-form {
    grid-template-columns: 1fr;
  }

  .search-term {
    grid-template-columns: 1fr;
    padding: 13px 16px 8px;
  }

  .search-term-row {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .search-term__count,
  .search-term-delete {
    justify-self: start;
  }

  .search-term-delete {
    margin: 0 16px 13px;
  }

  .birthday-month-nav {
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .birthday-month-nav__button {
    height: 44px;
  }

  .birthday-alert {
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 13px 16px 10px;
  }

  .birthday-alert__date,
  .birthday-alert__age {
    justify-self: start;
  }

  .edit-form button {
    width: 100%;
  }

  .site-modal-form__actions {
    flex-direction: column-reverse;
  }

  .site-modal-form button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 980px);
  }

  .logs {
    margin-top: 82px;
  }

  .home {
    gap: 22px;
    margin-top: 82px;
  }

  .edit-page {
    gap: 18px;
    margin-top: 82px;
  }

  .home-header {
    padding: 14px 16px;
  }

  .edit-page__header {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .edit-page h1 {
    font-size: 1.55rem;
  }

  .home-search__field {
    grid-template-columns: 52px minmax(0, 1fr) 46px;
  }

  .home-search__browser-toggle {
    width: 52px;
  }

  .home-sites__grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
