:root {
  --main-color: #242943;
  --cta: #50adc9;
  --bg: #fff;
  --danger: #ff6b6b;
  --danger-light: #ffebee;
  --header-bg: #f8f9fa;
  --icon-btn-bg: #6c757d;
  --icon-btn-hover: #5a6268;
  --footer-color: #999;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--main-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding-top: 70px;
}

/* Animációk */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideInNew {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
#saved-signatures li.new-signature {
  animation: slideInNew 0.4s ease-out;
}

/* Fejléc */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border-bottom: 2px solid #eceaf5;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-out;
}

.header-content {
  display: flex;
  align-items: center;
  padding: 0 24px;
  width: 100%;
}

.header-logo {
  height: 40px;
  margin-right: 16px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--main-color);
  margin: 0;
  flex: 1;
}

.info-btn-header {
  background: #6c757d; /* szürke szín */
  color: var(--main-color);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn {
  background: #6c757d; /* szürke szín */
  color: var(--main-color);
  border: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  background: #5a6268; /* sötétebb szürke hover-nél */
  transform: scale(1.1);
}

.info-btn img {
  filter: brightness(0) invert(1); /* Fehér színű SVG */
}

.info-btn-header:hover {
  background: #5a6268; /* sötétebb szürke hover-nél */
  transform: scale(1.1);
}

.info-btn-header img {
  filter: brightness(0) invert(1); /* Fehér színű SVG */
}

/* HAMBURGER MENÜ - JAVÍTOTT X POZÍCIÓ */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--main-color);
  padding: 4px;
  position: relative;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
}

.half-width {
  width: calc(50% - 5px);
  box-sizing: border-box;
}

.hamburger-line {
  width: 16px;
  height: 2px;
  background: var(--main-color);
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-4px);
}

.hamburger-line:nth-child(2) {
  transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
  transform: translate(-50%, -50%) translateY(4px);
}

.container {
  display: flex;
  min-height: calc(100vh - 70px);
  position: relative;
}

/* Rögzített oldalpanel */
.sidebar {
  width: 300px;
  background: #f7f7fc;
  border-right: 2px solid #eceaf5;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px 16px;
}

.current-signature {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.current-signature-btn {
  width: 100%;
  background: var(--cta);
  color: var(--bg);
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.current-signature-btn:hover {
  background: #3d92ae;
  transform: translateY(-1px);
}

.current-signature-btn.active {
  background: var(--main-color);
}

.plus-icon {
  font-size: 1.2em;
  font-weight: bold;
}

.separator {
  height: 2px;
  background: linear-gradient(to right, transparent, #d1d4e0, transparent);
  margin: 0 -8px 5px -8px;
  flex-shrink: 0;
}

.aside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0px;
  flex-shrink: 0;
}

.aside-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-container {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #d1d4e0;
  border-radius: 6px;
  font-size: 0.9em;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(80, 173, 201, 0.1);
}

.signatures-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#saved-signatures {
  padding-top: 2px;
  padding-left: 0;
  list-style: none;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d4e0 #f7f7fc;
}

#saved-signatures::-webkit-scrollbar {
  width: 6px;
}

#saved-signatures::-webkit-scrollbar-track {
  background: #f7f7fc;
}

#saved-signatures::-webkit-scrollbar-thumb {
  background: #d1d4e0;
  border-radius: 3px;
}

#saved-signatures::-webkit-scrollbar-thumb:hover {
  background: #c1c4d0;
}

#saved-signatures li {
  background: #eceaf5;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

#saved-signatures li:hover {
  background: #d1d4e0;
  transform: translateY(-2px);
}

#saved-signatures li.active {
  background: var(--cta);
  color: var(--bg);
}

#saved-signatures.initial-load li {
  animation: fadeIn 0.3s ease-out;
}
#saved-signatures.initial-load {
  flex: auto;
}

#saved-signatures:not(.initial-load) li {
  animation: none !important;
}

#saved-signatures:not(.initial-load) li {
  animation: none !important;
}

.signature-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  opacity: 0.7;
  transition: all 0.2s ease;
  margin-left: 8px;
  line-height: 1;
}

.menu-btn:hover {
  opacity: 1;
  color: var(--main-color);
  transform: scale(1.2);
}

#saved-signatures li.active .menu-btn {
  color: rgba(255, 255, 255, 0.8);
}

#saved-signatures li.active .menu-btn:hover {
  color: white;
}

.no-signatures,
.no-results {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
  animation: fadeIn 0.5s ease-out;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eceaf5;
  flex-shrink: 0;
}

.sidebar-footer p {
  font-size: 0.75em;
  color: var(--footer-color);
  text-align: center;
  margin: 0;
}

.mobile-footer {
  display: none;
  background: #f7f7fc;
  border-top: 1px solid #eceaf5;
  padding: 16px;
  text-align: center;
}

.mobile-footer p {
  font-size: 0.75em;
  color: var(--footer-color);
  margin: 0;
}

main {
  flex: 1 1 auto;
  padding: 40px 6vw;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-out;
}

form#signature-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f9faff;
  padding: 24px 20px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 14px #0002;
  max-width: 650px;
  animation: fadeIn 0.6s ease-out;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row label {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

/* JAVÍTOTT SZERVEZETI EGYSÉG ÉS KAR INPUT CSOPORTOK */
.org-input-group,
.faculty-input-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 7px;
}

.org-input-group input,
.faculty-input-group select {
  flex: 1;
  margin-top: 0 !important;
  height: 40px;
  box-sizing: border-box;
  line-height: 1.2;
}

/* JAVÍTOTT PLUSZ/MÍNUSZ GOMBOK - TÖKÉLETES IGAZÍTÁS */
.add-org-btn,
.remove-org-btn {
  background: var(--cta);
  color: var(--bg);
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}

.add-org-btn:hover {
  background: #3d92ae;
  transform: scale(1.05);
}

.remove-org-btn {
  background: var(--danger);
  color: white;
}

.remove-org-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

#additional-orgs,
#additional-faculty {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* JAVÍTOTT ADDITIONAL ORG SOROK */
.additional-org-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 0;
  animation: fadeIn 0.3s ease-out;
}

.additional-org-row input {
  flex: 1;
  height: 40px;
  margin-top: 7px !important;
  box-sizing: border-box;
}

/* Gomb animációk */
.generate-btn {
  transition: all 0.3s ease;
  flex: 1;
  max-width: 100%;
}

.generate-btn.compressed {
  flex: 1;
  max-width: calc(100% - 44px);
}

/* DESKTOP RESET GOMB - JAVÍTOTT MÉRET */
.reset-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-btn-bg);
  color: white;
  border: none;
  border-radius: 8px; /* 6px-ről 8px-re a konzisztencia miatt */
  font-size: 1em;
  cursor: pointer;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.reset-btn:hover {
  background: var(--icon-btn-hover);
  transform: translateX(0) scale(1.05);
}

.reset-btn.visible {
  transform: translateX(0);
  opacity: 1;
}

.mobile-text {
  display: none;
}

/* Egységes input és select stílusok */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  margin-top: 7px;
  padding: 7px 9px;
  border: 1.5px solid #d1d4e0;
  border-radius: 5px;
  font-size: 1em;
  color: var(--main-color);
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  appearance: none;
  height: 40px;
  box-sizing: border-box;
}

/* Select nyíl ikon */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: 32px;
}

input:focus,
select:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(80, 173, 201, 0.1);
}

/* Az aláírás preview cellákra tördelés */
/* .sig-cell rule removed - using inline styles for Gmail compatibility
.sig-cell {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 260px;
    display: inline-block;
    vertical-align: top;
} */

.cta {
  background: var(--cta);
  color: var(--bg);
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-top: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px #0002;
  transition: all 0.2s ease;
}

.cta:hover {
  background: #3d92ae;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #0003;
}

.cta.small {
  padding: 7px 16px;
  margin-left: 7px;
}

.cta.secondary {
  background: #6c757d;
  padding: 12px 16px;
  margin-top: 14px;
  margin-left: 0;
  font-size: 1.2em;
  min-width: 50px;
}

.cta.secondary:hover {
  background: #5a6268;
}

.cta.cancel {
  background: #eceaf5;
  color: #242943;
}

.cta.cancel:hover {
  background: #d1d4e0;
}

.cta.danger {
  background: var(--danger);
  color: white;
}

.cta.danger:hover {
  background: #ff5252;
}

.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta:disabled:hover {
  background: var(--cta);
  transform: none;
}

.signature-output {
  margin-top: 38px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 12px #0001;
  padding: 20px 18px 28px 18px;
  max-width: 700px;
  animation: fadeIn 0.5s ease-out;
}

#signature-preview {
  border: 1.8px dashed #50adc975;
  background: #f7fbfd;
  margin-bottom: 18px;
  margin-top: 8px;
  padding: 22px 12px;
  min-height: 100px;
  max-width: 100%;
  overflow-x: auto;
  animation: fadeIn 0.6s ease-out;
}

.signature-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Ikon stílusok, kicsi mérettel */
/* .signature-icon rule removed - using inline styles for Gmail compatibility
.signature-icon {
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 2px;
} */

/* CHECKBOX SOR - JAVÍTOTT MOBIL ELRENDEZÉS */
.form-row.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  margin-top: -3px;
  flex-direction: row;
}

.form-row.checkbox-row input[type="checkbox"] {
  margin: 0;
  appearance: auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  order: 0;
}

.checkbox-inline-label {
  font-weight: 600;
  user-select: none;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  flex: 1;
  order: 1;
}

/* Modal stílusok */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 41, 67, 0.15);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 27px 34px 24px 34px;
  border-radius: 14px;
  box-shadow: 0 6px 30px #24294322;
  text-align: center;
  width: 330px;
  max-width: 90vw;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.large-modal {
  width: 500px;
  max-width: 95vw;
  text-align: left;
}

.scrollable {
  max-height: 80vh;
  overflow-y: auto;
}

.menu-modal-content {
  width: 400px;
  max-width: 90vw;
}

.storage-modal .modal-section .half-width {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.storage-modal .modal-section label.half-width input[type="file"] {
  display: none;
}

.modal-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #f9faff;
  border-radius: 8px;
}

.storage-modal .modal-section {
  display: flex;
  gap: 10px;
}

.storage-modal .modal-section > * {
  flex: 1;
  height: 40px;
  line-height: 40px;
  box-sizing: border-box;
}

.modal-section h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--main-color);
  font-size: 1.1em;
}

.modal-divider {
  height: 1px;
  background: #eceaf5;
  margin: 20px 0;
}

.warning-text {
  color: var(--danger);
  font-size: 0.9em;
  margin-bottom: 12px;
}

.modal-text {
  text-align: left;
  line-height: 1.5;
}

.modal-text h4 {
  color: var(--main-color);
  margin-top: 20px;
  margin-bottom: 12px;
}

.modal-text ul {
  margin: 8px 0;
  padding-left: 20px;
}

.modal-text li {
  margin-bottom: 6px;
}

.close {
  color: #ccc;
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close:hover {
  color: var(--main-color);
  transform: scale(1.2);
}

.modal-input {
  padding: 8px 12px;
  font-size: 1em;
  border: 1.5px solid #d1d4e0;
  border-radius: 6px;
  width: 85%;
  margin: 16px auto 8px auto;
  display: block;
  outline: none;
  transition: all 0.2s ease;
}

.modal-input:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(80, 173, 201, 0.1);
}

.modal-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.menu-current-name {
  font-weight: bold;
  color: var(--main-color);
  margin: 16px 0;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: white;
  color: #242943;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #4caf50;
  transition: width linear;
  width: 100%;
}

.toast-progress.animate {
  width: 0;
}
.toast-icon-success {
  background: #4caf50;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon-error {
  background: #f44336;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon-success img,
.toast-icon-error img {
  filter: brightness(0) invert(1); /* Fehér színű SVG */
}

/* Responsive - MÓDOSÍTOTT: 900px-től oldalról becsúszó sidebar */
@media (max-width: 900px) {
  body {
    padding-top: 60px;
  }

  .site-header {
    height: 60px;
  }

  .header-content {
    padding: 0 16px;
  }

  .header-logo {
    height: 32px;
    margin-right: 12px;
  }

  .header-title {
    font-size: 1.2em;
  }

  .mobile-toggle {
    display: flex;
  }

  .container {
    flex-direction: column;
    min-height: calc(100vh - 60px);
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80vw;
    height: 100vh;
    max-width: 320px;
    background: #f7f7fc;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(36, 41, 67, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1500;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-content {
    height: 100%;
    padding: 16px;
  }

  .sidebar-footer {
    display: none;
  }

  .mobile-footer {
    display: block;
  }

  .aside-header {
    margin-bottom: 10px;
  }

  .aside-header h2 {
    margin: 0;
  }

  .hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  main {
    padding: 30px 4vw;
  }

  form#signature-form {
    padding: 20px 16px;
  }

  .form-row {
    gap: 16px;
  }

  .form-row label {
    flex: 1 1 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .generate-btn {
    width: 100%;
    max-width: 100%;
    height: 44px;
  }

  .generate-btn.compressed {
    max-width: 100%;
  }

  .reset-btn {
    width: 100%;
    height: 44px;
    min-width: auto;
    min-height: 44px;
    transform: translateY(50px);
    margin-left: 0;
    background: var(--icon-btn-bg);
    border-radius: 8px;
    font-size: 1em;
  }

  .reset-btn.visible {
    transform: translateY(0);
  }

  .desktop-icon {
    display: none;
  }

  .mobile-text {
    display: block;
    font-size: 1em;
    font-weight: bold;
  }

  .org-input-group,
  .faculty-input-group {
    align-items: flex-end;
    gap: 8px;
    margin-top: 7px;
  }

  .additional-org-row {
    align-items: flex-end;
  }

  .add-org-btn,
  .remove-org-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin-top: 0 !important;
  }

  .form-row.checkbox-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
  }

  .form-row.checkbox-row input[type="checkbox"] {
    margin: 0 !important;
    appearance: auto !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    order: 0 !important;
  }

  .checkbox-inline-label {
    font-weight: 600 !important;
    user-select: none !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex: 1 !important;
    order: 1 !important;
  }
}

@media (max-width: 600px) {
  .header-title {
    font-size: 1.1em;
  }

  main {
    padding: 20px 3vw;
  }

  .modal-content {
    width: 280px;
    padding: 20px 24px;
  }

  .large-modal {
    width: 320px;
    padding: 20px 24px;
  }

  .menu-modal-content {
    width: 300px;
    padding: 20px 24px;
  }

  .modal-btns {
    flex-direction: column;
    gap: 8px;
  }

  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  .cta.small {
    margin-left: 0;
    width: 100%;
  }

  .signature-actions {
    flex-direction: column;
    gap: 8px;
  }

  .signature-actions .cta.small {
    width: 100%;
    margin-left: 0;
  }
}
