  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 8px;
    gap: 6px;
  }

  label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
  }

  .field-group {
    flex-shrink: 0;
  }

  .textarea-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .textarea-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
  }

  .textarea-header label {
    margin-bottom: 0;
  }

  input[type="password"],
  textarea {
    width: 100%;
    padding: 3px 4px;
    font-family: 'Lucida Console', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    outline: none;
    resize: none;
  }

  textarea {
    flex: 1;
    min-height: 0;
  }

  .btn {
    cursor: default;
    padding: 3px 12px;
    min-width: 72px;
    text-align: center;
    outline: none;
  }

  .btn-small {
    min-width: 0;
    padding: 2px 8px;
    font-size: 10px;
  }

  .button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .swap-row {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
  }

  .disclaimer {
    flex-shrink: 0;
    text-align: center;
    font-size: 10px;
    color: var(--sz-color-gray-text);
    padding-top: 2px;
  }

  @keyframes flash-error {
    0%   { border-color: #c00; }
    50%  { border-color: #f66; }
    100% { border-color: var(--sz-color-button-shadow); }
  }

  .input-error {
    animation: flash-error 0.6s ease-out;
  }

  .output-error {
    color: #c00 !important;
  }
