        * {
                box-sizing: border-box;
            }
      :root {
        --bg: #f2f4f7;
        --panel: #ffffff;
        --panel-alt: #f8fafc;
        --line: #dfe5ec;
        --text: #1f2937;
        --muted: #5b6473;
        --primary: #2c5ea8;
        --primary-soft: #eaf2ff;
        --button: #e2e8f0;
        --button-hover: #cbd5e1;
        --shadow: rgba(15, 23, 42, 0.08);
      }

      * { box-sizing: border-box; }

      body {
        margin: 0;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background: var(--bg);
        color: var(--text);
      }

      

      .app {
        width: min(1200px, calc(100vw - 32px));
        min-height: 720px;
        margin: 18px auto;
        background: var(--panel);
        border: 1px solid var(--line);
        box-shadow: 0 8px 22px var(--shadow);
        display: flex;
        overflow: hidden;
      }

      .sidebar {
        width: 380px;
        background: var(--panel-alt);
        border-right: 1px solid var(--line);
        padding: 12px 10px 12px 12px;
      }

      .sidebar h3 {
        margin: 0 0 10px;
        font-size: 14px;
        font-weight: 700;
      }

      .guide-box {
        height: 560px;
        background: #f3f6fb;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
      }

      .guide-figure {
        position: relative;
        width: 320px;
        height: 460px;
      }

      .guide-figure .soil {
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 90px;
        background: linear-gradient(#d6d2c6, #c4bda9);
        border-radius: 10px 10px 0 0;
      }

      .guide-figure .wall {
        position: absolute;
        left: 90px;
        bottom: 90px;
        width: 150px;
        height: 240px;
        background: linear-gradient(#ebeff5, #dfe7f2);
        border-left: 2px solid #b8c6d7;
        border-bottom: 2px solid #b8c6d7;
        transform: skewX(-6deg);
      }

      .guide-figure .wall::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.05), rgba(255,255,255,0.4));
      }

      .guide-figure .ramp {
        position: absolute;
        left: 45px;
        bottom: 145px;
        width: 130px;
        height: 130px;
        border-left: 3px solid #8aa4be;
        border-bottom: 3px solid #8aa4be;
        transform: skewX(-28deg);
      }

      .guide-figure .label {
        position: absolute;
        font-size: 11px;
        color: var(--muted);
        letter-spacing: 0.02em;
      }

      .guide-figure .l1 { left: 15px; bottom: 92px; }
      .guide-figure .l2 { left: 176px; bottom: 40px; }
      .guide-figure .l3 { left: 180px; top: 70px; }
      .guide-figure .l4 { left: 18px; top: 130px; }

      .main {
        flex: 1;
        padding: 10px;
      }

      .content {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 8px 10px;
      }

      .section {
        background: var(--panel-alt);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 8px 10px 10px;
      }

      .section.geometry {
        grid-column: 1 / -1;
      }

      .section-title {
        margin: 0 0 8px;
        font-size: 12px;
        font-weight: 700;
      }

      .field-grid {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 5px 8px;
        align-items: center;
      }

      .geometry .field-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
      }

      .field-grid label {
        font-size: 12px;
        color: var(--text);
        white-space: nowrap;
      }

      .field-grid input[type="text"] {
        width: 100%;
        min-width: 82px;
        padding: 4px 6px;
        border: 1px solid #c9d3df;
        border-radius: 4px;
        background: white;
        font-size: 12px;
      }

      .field-grid .unit {
        font-size: 11px;
        color: var(--muted);
        min-width: 48px;
      }

      .radio-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 4px;
      }

      .radio-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--text);
      }

      .radio-row input[type="radio"] {
        accent-color: var(--primary);
      }

      .actions {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      button {
        border: 1px solid #cdd7e3;
        border-radius: 5px;
        padding: 7px 12px;
        background: var(--button);
        color: var(--text);
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: 0.15s ease;
      }

      button:hover {
        background: var(--button-hover);
      }

      .results-heading {
        margin: 12px 0 6px;
        font-size: 13px;
        font-weight: 700;
      }

      textarea {
        width: 100%;
        min-height: 220px;
        resize: vertical;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fbfcfe;
        padding: 10px;
        font-family: "Consolas", "Courier New", monospace;
        font-size: 12px;
        line-height: 1.45;
        color: var(--text);
      }

      @media (max-width: 980px) {
        .app {
          flex-direction: column;
          width: min(900px, calc(100vw - 20px));
        }

        .sidebar {
          width: 100%;
          border-right: none;
          border-bottom: 1px solid var(--line);
        }

        .content {
          grid-template-columns: 1fr;
        }
      }

            /* Style the header */
        header {
                background-color: #549aa3;
                padding: 30px;
                text-align: center;
                font-size: 35px;
                color: white;
                width: 100%;
            }

            /* Create two columns/boxes that floats next to each other */
        nav { /* only for demonstration, should be removed */
                background: #ccc;
                padding: 5px;
                text-align: center;
            }

            /* Style the list inside the menu */
        nav ul {
                padding: 0px;
            }
            a {
                padding: 10px;
            }

        article {
                padding: 20px;
                background-color: #f1f1f1;
            }

            /* Clear floats after the columns */
        section::after {
                content: "";
                display: table;
                clear: both;
            }

            /* Style the footer */
        footer {
                background-color: #549aa3;
                padding: 10px;
                text-align: center;
                color: white;
                width: 100%;
            }

        .grid-container {
                display: grid;
                grid-template-columns:auto auto auto;
                grid-gap: 10px;
            }

        .pc1{
                background-color:#FFF4A3;
            }

            /* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
        @media (max-width: 600px) {
        nav, article {
                width: 100%;
                height: auto;
            }
        }
        input[type="text"], input[type="password"] {
            padding: 5px;
            margin: 5px;
            border-radius: 5px;
            border: 1px solid gray;
        }
        input[type="submit"] {
            padding: 5px 10px;
            border-radius: 5px;
            border: none;
            background-color: blue;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: darkblue;
        }
        .error {
            color: red;
            text-align: center;
        }
        .success {
            color: green;
            text-align: center;
        }
        .info {
            color: blue;
            text-align: center;
        }
        .warning {
            color: orange;
            text-align: center;
        }
        .message {
            margin: 10px 0;
        }
        ul {
            list-style-type: none;
            padding: 0;
        }
        li {
            margin: 5px 0;
        }
        table {
            width: 50%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid gray;
            padding: 10px;
            text-align: left;
        }
        th {
            background-color: lightgray;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        tr:hover {
            background-color: #ddd;
        }
        .container {
            width: 80%;
            margin: auto;
            overflow: hidden;
        }
        .btn {
            display: inline-block;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            outline: none;
            color: #fff;
            background-color: #4CAF50;
            border: none;
            border-radius: 15px;
            box-shadow: 0 9px #999;
        }
        .btn:hover {background-color: #3e8e41}
        .btn:active {
            background-color: #3e8e41;
            box-shadow: 0 5px #666;
            transform: translateY(4px);
        }
        .btn-danger {
            background-color: #f44336;
        }
        .btn-danger:hover {
            background-color: #da190b;
        }
        .btn-danger:active {
            background-color: #da190b;
        }
        .form-group {
            margin: 15px 0;
        }
    