:root {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    background: #102523;
    color: #e6eee4;
    color-scheme: dark;
    font-size: 14px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
header {
    padding: 18px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #35504a;
}
small {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #92afa3;
}
h1 {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 4px 0;
}
h1 span {
    font-size: 12px;
    color: #f1c779;
    vertical-align: top;
    margin-left: 8px;
}
button,
select,
input {
    font: inherit;
}
button,
select,
input[type='number'] {
    background: #203c36;
    color: #e6eee4;
    border: 1px solid #486359;
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 40px;
}
button {
    cursor: pointer;
}
button:hover {
    border-color: #e6bd72;
}
button:disabled {
    opacity: 0.4;
    cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #ecc478;
    outline-offset: 2px;
}
.principal {
    background: #e5bd77;
    color: #20352f;
    border-color: #e5bd77;
    font-weight: 600;
}
main {
    display: flex;
    flex: 1;
    min-height: 0;
}
#scene {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 12px 24px 8px;
}
.bande,
.informations {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: #a4beb0;
}
.bande {
    padding: 3px 0 10px;
}
.surface {
    flex: 1;
    min-height: 90px;
    border: 1px solid #35544a;
    border-radius: 12px;
    overflow: hidden;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}
.informations {
    padding: 7px 0;
}
.informations button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
}
.transport {
    display: flex;
    gap: 7px;
}
.transport .principal {
    margin-right: auto;
}
.lecture {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
}
.lecture input {
    flex: 1;
    min-width: 30px;
}
.lecture label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}
.lecture select {
    min-height: 32px;
    padding: 5px;
}
output {
    font-variant-numeric: tabular-nums;
}
#temps {
    font-size: 12px;
    min-width: 56px;
}
input[type='range'] {
    accent-color: #e5bd77;
    touch-action: none;
}
#etat {
    font-size: 11px;
    color: #a4beb0;
    margin: 9px 0 0;
    min-height: 27px;
}
progress {
    width: 100%;
    height: 6px;
    accent-color: #e5bd77;
}
aside {
    width: 320px;
    background: #18332d;
    border-left: 1px solid #35544a;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
[hidden] {
    display: none !important;
}
.entete {
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #35544a;
}
.entete h2 {
    font-size: 18px;
    font-weight: 500;
}
.contenu {
    overflow: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px 25px;
}
.contenu label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #bdd0c2;
}
.contenu h3 {
    font-size: 14px;
    color: #e5bd77;
    margin: 6px 0 0;
}
.contenu p {
    font-size: 11px;
    line-height: 1.65;
    color: #a4beb0;
    margin: 0;
}
.contenu output {
    font-size: 11px;
}
.paire {
    display: flex;
    gap: 9px;
}
.paire label {
    width: 50%;
}
.paire input {
    width: 100%;
}
.fichier input {
    max-width: 100%;
    font-size: 11px;
}
a {
    color: #e5bd77;
    font-size: 12px;
}
#placer[aria-pressed='true'] {
    background: #e5bd77;
    color: #20352f;
}
@media (max-width: 700px) {
    header {
        padding: 9px 12px;
    }
    h1 {
        font-size: 24px;
    }
    header button {
        font-size: 11px;
        padding: 7px;
    }
    small {
        font-size: 8px;
    }
    main {
        flex-direction: column;
    }
    #scene {
        padding: 8px 10px 5px;
    }
    aside {
        width: 100%;
        max-height: 40dvh;
        border-left: 0;
        border-top: 1px solid #35544a;
        flex-shrink: 0;
    }
    .entete {
        padding: 3px 12px;
    }
    .entete h2 {
        font-size: 15px;
        margin: 8px 0;
    }
    .entete button {
        min-height: 32px;
        padding: 5px;
    }
    .contenu {
        padding: 10px 13px;
    }
    .transport button {
        font-size: 11px;
        padding: 7px;
        min-height: 37px;
    }
    .informations {
        font-size: 9px;
    }
    .bande {
        font-size: 9px;
    }
    .lecture {
        gap: 6px;
    }
    #etat {
        font-size: 10px;
    }
}
@media (max-height: 500px) {
    header {
        padding: 4px 12px;
    }
    header small {
        display: none;
    }
    h1 {
        font-size: 21px;
    }
    #etat {
        display: none;
    }
    .lecture {
        padding-top: 4px;
    }
    .informations {
        padding: 3px 0;
    }
    .bande {
        padding: 0 0 3px;
    }
    .transport button {
        min-height: 30px;
        padding: 5px;
    }
}
