.system-tools__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.system-tools__nav button {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.system-tools__nav button:hover,
.system-tools__nav button[aria-pressed="true"] {
  border-color: #bed8ff;
  background: #edf5ff;
  color: #135bb9;
}

.tenant-notice__form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  color: #1f2937;
}

.tenant-notice__form p {
  margin: 0;
}

.tenant-notice__language {
  color: #475569;
}

.tenant-notice__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tenant-notice__field input,
.tenant-notice__field textarea {
  box-sizing: border-box;
  text-align: left;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.tenant-notice__field textarea {
  min-height: 120px;
  line-height: 1.7;
  resize: vertical;
}

.tenant-notice__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.tenant-notice__primary {
  min-width: 96px;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1464cc;
  color: #fff;
  font: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.tenant-notice__primary:hover:not(:disabled) {
  background: #0e53ad;
}

.tenant-notice__primary:disabled {
  background: #e9eef5;
  color: #576579;
  cursor: default;
}

.tenant-notice :focus-visible {
  outline: 2px solid #1464cc;
  outline-offset: 2px;
}

.tenant-notice__dialog {
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
  width: min(1250px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #c5d3e4;
  border-radius: 12px;
  background: #fff;
  color: #14253a;
  box-shadow: 0 24px 72px #13294440;
}

.tenant-notice__dialog::backdrop {
  background: #0f172a30;
}

.tenant-notice__header,
.tenant-notice__footer {
  display: flex;
  align-items: center;
  padding-inline: 16px;
}

.tenant-notice__header {
  justify-content: space-between;
  column-gap: 12px;
  min-height: 38px;
  padding-block: 3px;
  background: #eaf2ff;
  border-bottom: 1px solid #d9e5f6;
}

.tenant-notice__header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  color: #24466f;
}

.tenant-notice__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24466f;
  font: 21px/1 sans-serif;
  cursor: pointer;
}

.tenant-notice__close:hover {
  background: #d9e7fa;
}

.tenant-notice__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  box-sizing: border-box;
  align-items: start;
  align-content: start;
  gap: clamp(10px, 1.5vw, 18px);
  min-height: clamp(104px, 11.5vw, 142px);
  max-height: 62vh;
  padding: 20px clamp(14px, 2vw, 24px);
  overflow: auto;
}

.tenant-notice__icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(34px, 5vw, 48px);
  margin-top: 14px;
  aspect-ratio: 1;
  border: 1px solid #24486a;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 25%, #315d88, #183b60 52%, #10243c);
  color: #f7fbff;
  font: italic 700 clamp(23px, 3vw, 34px)/1 Georgia, "Times New Roman", serif;
}

.tenant-notice__text {
  text-align: left;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tenant-notice__phone {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.35em;
  font-size: 15px;
  font-weight: 500;
}

.tenant-notice__message {
  margin-top: 14px;
  font-size: 15px;
  white-space: pre-wrap;
}

.tenant-notice__footer {
  justify-content: flex-end;
  padding-block: 10px;
  border-top: 1px solid #e5ebf3;
  background: #f6f8fc;
}

.tenant-notice__editor {
  box-sizing: border-box;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #c5d3e4;
  border-radius: 12px;
  background: #fff;
  color: #14253a;
  box-shadow: 0 24px 72px #13294440;
}

.tenant-notice__editor::backdrop {
  background: #0f172a30;
}

.tenant-notice__editor h2 {
  margin: 0 0 14px;
}

.tenant-notice__editor input[readonly] {
  background: #f3f6fa;
}

.tenant-notice__editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tenant-notice__editor-error {
  color: #b91c1c;
}
