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

        @media (min-width: 768px) {

            body {
                padding: 20px;
            }
            .container{
                border-radius: 8px;
                box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            }
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;

        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: #fbfbfb;

            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 10px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .header p {
            opacity: 0.9;
            font-size: 14px;
        }

        .content {
            padding: 10px;
            background: ghostwhite;


        }

        .word-lists {
            /*display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;*/
            margin-bottom: 30px;
        }

        .word-group {
            display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    gap: 8px;
    justify-content: start;
            background: #f8f9fa;
            border-radius: 0px;
            padding: 8px;
            margin: 8px;
            border: 1px solid #e9ecef;
        }



        .word-lists2 {
            /*display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;*/
            margin-bottom: 30px;

        }

        .word-group2 {
            /*display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    border-radius: 500px;
    */
            display: flex;
            flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: start;
            background: #f8f9fa;

            padding: 2px;
            margin: 8px;
            border: 1px solid #e9ecef;
        }

.word-item2 {
            background: white;
            border: 2px solid #dee2e6;
            border-radius: 500px;
            padding: 2px 8px;
            margin-bottom: 0px;
            cursor: pointer;
            transition: all 0.2s;
        }
/*
 * display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    gap: 1em;
    justify-content: start;
*/


        .ch-num {
            color: rgb(0 88 255);
        }
        .ch-sp {
            color: #E91E63;
        }
        .ch-ch {
            color: unset;
        }
        .word-group h3 {
            color: #495057;
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }

        .word-item {
            background: white;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 0px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .word-item:hover {
            border-color: #667eea;
            transform: translateX(4px);
        }

        .word-item.selected {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: white;
        }

        .word-main {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 4px;
        }

        .word-sub {
            font-size: 13px;
            opacity: 0.7;
        }

        .selected-section {
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .selected-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    }


    .fieldset-container {
    border: 1px solid #666666;

    padding: 0;
    max-width: 300px;
    font-size: small;

    max-height: 7.5em;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .fieldset-container legend {
    display: none;
  }
  .fieldset-container label {
    display: block;
    padding: 4px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    line--height: 1.5;
  }
    .fieldset-container input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    position: absolute;
    opacity: 0;
  }

  .fieldset-container label:has(input:checked) {
    background-color: lightblue;
    border-bottom-color: darkgray;
  }

        .selected-words {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;

            min-height: 25px;
            margin-bottom: 8px;
        }

        .selected-box {

            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-content: center;
            align-items: center;
            /*padding: 8px;*/
            min-height: 30px;
            margin-bottom: 8px;
        }

        .is-hidden {
            display: none !important;
        }
        .selected-box button{
            width: 40px;
            padding: 4px;

        }
        .selected-password  {

            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
        }

        .selected-password-edit{
            display: flex;
            flex-wrap: nowrap;
            gap: 5px;
            width: 100%;
            max-width: 900px;
            /*padding: 8px;*/
            margin-bottom: 8px;
        }
        .selected-password-edit input {
            width: 100%;
            padding: 4px;
            font-family: monospace;
            line-height: 1.5rem;
        }
        .selected-password-edit button {
            width: 40px;
            padding: 4px;
        }
        .selected-badge {
            /*display: flex;
            flex-direction: column;*/
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4px;
            border-radius: 8px;
            caret-color: transparent;
            cursor: pointer;
            /*font-size: 14px;*/



        }

        .selected-badge-sep {
            /*content: "\2192";
            margin-right: 10px;
            margin-left: 5px;  */
            color: #CCCCCC;
        }

        /*.selected-badge span {
            cursor: pointer;
            font-weight: bold;
            opacity: 0.8;
        }

        .selected-badge span:hover {
            opacity: 1;
        }
*/
        .schemas {
            display: grid;
            gap: 15px;
        }

        .schema-item {
            background: white;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .schema-input {
            flex: 1;
            border: 1px solid #ced4da;
            border-radius: 6px;
            padding: 10px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
        }

        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 5px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;

        }

        .btn-clear {
            background: #dc3545;
        }
        .btn-reload {
            background: #4caf50;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            animation: slideIn 0.3s;
            z-index: 1000;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }



        .noscroll {
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    -webkit-overflow-scrolling: touch;
}
.noscroll::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}
