      #settings-page {
        min-height: 0;
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

      .settings-section {
        width: 100%;
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

      #front-page,
      #settings-page {
        min-height: 0;
        gap: 12px;
      }

      .record-button,
      .trigger-record-button,
      .vandfald-audio-record {
        background: #1d4ed8;
        color: #ffffff;
        border: none;
        border-radius: 999px;
        padding: 10px 18px;
        font-weight: bold;
        cursor: pointer;
      }

      .record-button:hover,
      .trigger-record-button:hover,
      .vandfald-audio-record:hover {
        opacity: 0.85;
      }

      .vandfald-history-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-height: 180px;
        overflow-y: auto;
        padding-right: 6px;
      }

      .vandfald-history-item {
        font-size: 0.95rem;
        padding: 6px 8px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(26, 26, 26, 0.15);
        white-space: pre-line;
        color: #1a1a1a;
      }

      .vandfald-history-empty {
        margin: 0;
        font-size: 0.9rem;
        color: #4c4c4c;
      }

      .vandfald-history-card-label.red {
        color: #b91c1c;
      }

      .settings-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

      .settings-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 16px;
      }

      .settings-header h2 {
        margin: 0 0 8px;
        font-size: 26px;
      }

      .settings-form-wrapper {
        background: #ffe8c5;
        border: 2px dashed rgba(255, 255, 255, 0.9);
        border-radius: 24px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .settings-form-wrapper label {
        font-weight: bold;
        font-size: 14px;
      }

      .settings-form-wrapper textarea,
      .settings-form-wrapper input[type="text"],
      .settings-form-wrapper input[type="file"] {
        width: 100%;
        border-radius: 12px;
        border: 2px solid #d5d5d5;
        padding: 12px;
        font-size: 14px;
        font-family: "Comic Sans MS", "Comic Sans", sans-serif;
        background: #fff6ec;
        color: #000;
      }

      .settings-form-wrapper textarea {
        min-height: 160px;
        resize: vertical;
        font-size: 18px;
        line-height: 1.6;
      }

      .settings-form-actions {
        display: flex;
        justify-content: flex-end;
      }

      #save-settings-row,
      .settings-form-actions .save-row {
        border: none;
        border-radius: 999px;
        padding: 12px 28px;
        font-weight: bold;
        font-size: 16px;
        background: linear-gradient(135deg, #7efc59 0%, #36c75a 100%);
        color: #051b04;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      }

      .settings-status {
        min-height: 20px;
        font-size: 14px;
        color: #111;
      }

      .configured-rows {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        min-width: 0;
        background: #ffe8c5;
        border-radius: 32px;
        padding: 28px 32px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
      }

      .configured-rows h3 {
        margin: 0;
      }

      .configured-rows-table-wrapper {
        background: #fff;
        border-radius: 22px;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
      }

      .configured-rows-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        table-layout: fixed;
      }

      #configured-rows-table td.vandfald-audio-cell,
      #configured-rows-table td.configured-row-actions {
        display: table-cell;
        vertical-align: middle;
      }

      #configured-rows-table td.vandfald-audio-cell .audio-entry {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .configured-rows-table-wrapper th:last-child,
      .configured-rows-table-wrapper td:last-child {
        white-space: nowrap;
        text-align: center;
      }

      .vandfald-table-section {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 24px;
        padding: 18px;
        border: 2px solid rgba(255, 193, 7, 0.7);
        margin-top: 24px;
      }

      .vandfald-table-wrapper {
        overflow-x: auto;
      }

      #vandfald-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
      }

      #vandfald-table th,
      #vandfald-table td {
        text-align: left;
        padding: 10px 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }

      #vandfald-table th {
        font-size: 14px;
      }

      #vandfald-table th:nth-child(3),
      #vandfald-table td:nth-child(3) {
        text-align: right;
      }

      .vandfald-table-wrapper col.col-card-audio {
        width: 140px;
      }

      .vandfald-table-section .settings-info {
        margin-top: 8px;
        font-size: 13px;
      }

      .vandfald-meaning-cell {
        min-width: 280px;
      }

      .vandfald-meaning-display {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .vandfald-meaning-text {
        font-size: 14px;
        line-height: 1.4;
        flex: 1;
      }

      .vandfald-meaning-edit {
        border: none;
        background: transparent;
        color: #36c75a;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
      }

      .vandfald-meaning-textarea {
        width: 100%;
        min-height: 64px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        padding: 8px 12px;
        resize: vertical;
        font-family: "Comic Sans MS", "Comic Sans", sans-serif;
        font-size: 14px;
      }

      .vandfald-meaning-actions {
        margin-top: 8px;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
      }

      .vandfald-meaning-save,
      .vandfald-meaning-cancel {
        border: none;
        border-radius: 999px;
        padding: 6px 16px;
        font-weight: bold;
        cursor: pointer;
      }

      .vandfald-meaning-save {
        background: #36c75a;
        color: #fff;
      }

      .vandfald-meaning-cancel {
        background: #ffb347;
        color: #1a1a1a;
      }

      .trigger-config {
        background: #ddf7cf;
        border-radius: 24px;
        padding: 16px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
        width: 100%;
      }

      .trigger-config-header {
        margin-bottom: 14px;
      }

      .trigger-config-header h3 {
        margin: 0 0 4px;
      }

      .trigger-card-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .trigger-card {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 18px;
        padding: 14px 18px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08);
      }

      .trigger-card-header {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .trigger-edit-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .trigger-edit-row textarea {
        width: 100%;
        min-height: 90px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        padding: 10px 12px;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.4;
        resize: vertical;
        background: #fff;
        color: #000;
      }

      .trigger-card-actions {
        display: flex;
        justify-content: flex-end;
      }

      .trigger-card-actions button {
        border: none;
        border-radius: 999px;
        padding: 8px 18px;
        font-weight: bold;
        font-size: 14px;
        background: linear-gradient(135deg, #7efc59 0%, #36c75a 100%);
        color: #051b04;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      }

      .trigger-card-actions .record-button,
      .trigger-card-actions .trigger-record-button {
        background: #1d4ed8 !important;
        color: #ffffff;
        box-shadow: none;
      }

      .trigger-card-header h4 {
        margin: 0;
        font-size: 18px;
      }

      .trigger-audio-label {
        margin: 0;
        font-size: 13px;
        color: #333;
      }

      .trigger-audio-list {
        font-size: 13px;
        color: #555;
      }

      .trigger-upload-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }

      .trigger-upload-row input[type='file'] {
        flex: 1;
      }

      .trigger-upload-row button {
        border: none;
        border-radius: 999px;
        padding: 8px 18px;
        font-weight: bold;
        font-size: 14px;
        background: linear-gradient(135deg, #7efc59 0%, #36c75a 100%);
        color: #051b04;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      }

      .trigger-upload-row .record-button,
      .trigger-upload-row .trigger-record-button {
        background: #1d4ed8 !important;
        color: #ffffff !important;
        border-color: transparent !important;
        background-image: none !important;
      }

      .story-editor {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .story-rows {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .story-row {
        display: grid;
        gap: 12px;
        align-items: start;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      }

      .story-row.navne-row {
        grid-template-columns: minmax(120px, 1fr) minmax(260px, 3fr) 48px;
      }

      .story-row.story-history-row {
        grid-template-columns: minmax(180px, 2fr) minmax(300px, 3fr) 48px;
      }

      .story-row:last-child {
        border-bottom: none;
      }

      .story-row-heading {
        font-size: 12px;
        text-transform: uppercase;
        font-weight: bold;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        padding-bottom: 6px;
        display: grid;
        gap: 12px;
        align-items: center;
      }

      .story-row-heading.navne-row-heading {
        grid-template-columns: minmax(120px, 1fr) minmax(260px, 3fr) 48px;
      }

      .story-row-heading.story-history-heading {
        grid-template-columns: minmax(180px, 2fr) minmax(300px, 3fr) 48px;
      }

      .story-heading-cell {
        color: #2f3d2c;
      }

      .story-heading-actions {
        justify-self: end;
      }

      .story-row-empty {
        grid-column: 1 / -1;
        font-size: 13px;
        color: #555;
      }

      .story-row-actions {
        display: flex;
        gap: 6px;
        justify-content: flex-end;
        align-items: center;
      }

      .story-row-save,
      .story-row-remove {
        border: none;
        border-radius: 999px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
      }

      .story-row-save {
        background: #36c75a;
        color: #fff;
      }

      .story-row-save:hover {
        background: #2ea650;
      }

      .story-row-remove {
        background: #ff4d4f;
        color: #fff;
      }

      .story-row-remove:hover {
        background: #ff6b6b;
      }

      .story-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .story-label {
        font-size: 11px;
        color: #222;
      }

      .story-cell input,
      .story-cell select,
      .story-cell textarea {
        width: 100%;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        padding: 8px 10px;
        font-family: inherit;
        font-size: 14px;
        resize: vertical;
        background: #fff;
        color: #000;
      }

      .story-cell textarea {
        min-height: 60px;
      }

      .story-row-remove {
        border: none;
        border-radius: 999px;
        background: #ff4d4f;
        color: #fff;
        width: 36px;
        height: 36px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        align-self: center;
      }

      .story-row-remove:hover {
        background: #ff6b6b;
      }

      .story-add-button {
        align-self: flex-start;
        border: none;
        border-radius: 999px;
        padding: 8px 18px;
        font-weight: bold;
        font-size: 14px;
        background: linear-gradient(135deg, #7efc59 0%, #36c75a 100%);
        color: #051b04;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      }

      @media (max-width: 720px) {
        .story-row {
          grid-template-columns: 1fr;
        }
        .story-row-remove {
          justify-self: flex-start;
        }
      }

      .trigger-upload-row .record-button:hover,
      .trigger-upload-row .trigger-record-button:hover,
      .trigger-upload-row .record-button:active,
      .trigger-upload-row .trigger-record-button:active {
        background: #255dd0 !important;
        color: #ffffff !important;
        background-image: none !important;
      }

      .trigger-status {
        margin: 0;
        font-size: 12px;
        color: #555;
        min-height: 16px;
      }

      .configured-rows-table-wrapper col.col-prompts {
        width: 28%;
      }

      .configured-rows-table-wrapper col.col-response {
        width: 45%;
      }

      .configured-rows-table-wrapper col.col-soundbite {
        width: 17%;
      }

      .configured-rows-table-wrapper col.col-actions {
        width: 170px;
        min-width: 170px;
      }

      .configured-rows-table-wrapper th,
      .configured-rows-table-wrapper td {
        word-break: break-word;
        white-space: normal;
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }

      .configured-rows-table-wrapper th:not(:first-child),
      .configured-rows-table-wrapper td:not(:first-child) {
        padding-left: 28px;
      }

      .configured-rows-table-wrapper th:last-child,
      .configured-rows-table-wrapper td:last-child {
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
      }

      .configured-rows-table-wrapper tbody tr:nth-child(odd) {
        background: rgba(255, 255, 255, 0.9);
      }

      .configured-rows-table-wrapper tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.6);
      }

      .configured-rows-table-wrapper a {
        color: #ff6b6b;
        font-weight: bold;
      }

      .configured-row-delete {
        border: none;
        background: transparent;
        color: #ff3864;
        font-size: 20px;
        padding: 0;
        cursor: pointer;
      }

      .configured-row-actions {
        display: table-cell;
        vertical-align: middle;
        padding: 0;
      }

      .configured-row-actions-wrap {
        display: inline-flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: 100%;
        white-space: nowrap;
      }

      .saved-interactions-section {
        margin-top: 24px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 22px;
        padding: 18px;
        border: 1px solid rgba(0, 0, 0, 0.05);
      }

      .saved-interactions-table-wrapper {
        overflow-x: auto;
        margin-top: 12px;
      }

      #saved-interactions-table {
        width: 100%;
        border-collapse: collapse;
      }

      #saved-interactions-table th,
      #saved-interactions-table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 10px;
        text-align: left;
        vertical-align: top;
      }

      #saved-interactions-table tbody tr:last-child td {
        border-bottom: none;
      }

      .configured-row-edit {
        border: 1px solid rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        padding: 4px 14px;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        color: #1a1a1a;
      }

      .configured-row-edit:focus-visible,
      .configured-row-delete:focus-visible {
        outline: 2px solid #1a1a1a;
        outline-offset: 3px;
      }

      .settings-info {
        font-size: 13px;
        color: #555;
        margin: 0;
      }