@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Text&display=swap');

:root {
    color-scheme: light;
    --fundo: #fbf4e8;
    --papel: #fffcf7;
    --texto: #39261d;
    --suave: #6f5141;
    --linha: #ead8c5;
    --caramelo: #88482b;
    --pessego: #f6dfc7;
    --sombra: 0 12px 35px #6c40200c;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--texto);
    background: radial-gradient(ellipse at top right, #f5dfc7, transparent 44rem), var(--fundo);
    font-family: 'DM Sans', system-ui, sans-serif;
}
a { color: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a85533; outline-offset: 3px; }
.pagina { max-width: 1200px; margin: auto; padding: 22px clamp(14px, 4vw, 46px) 56px; }
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 24px;
}
.marca { font: 400 1.75rem 'DM Serif Text', Georgia, serif; color: var(--caramelo); text-decoration: none; }
.menu { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.menu a { border-radius: 100px; padding: 8px 12px; font-size: .9rem; text-decoration: none; font-weight: 700; }
.menu a:hover, .menu a[aria-current] { background: #f3d8bd; color: #743c24; }
.topo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 210px;
    padding: 24px clamp(20px, 5vw, 56px);
    margin-bottom: 24px;
    background: linear-gradient(110deg, #fff2df 15%, #f1ccad);
    border: 1px solid #ecd0b4;
    border-radius: 28px;
    box-shadow: var(--sombra);
}
.topo::before {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid #fff9eaaa;
    border-radius: 50%;
    inline-size: 390px;
    aspect-ratio: 1;
    right: -36px;
    box-shadow: 0 0 0 22px #fff8eb26, 0 0 0 55px #fff8eb22;
}
.topo img { flex-shrink: 0; width: clamp(94px, 19vw, 200px); height: auto; mix-blend-mode: multiply; }
h1, h2, h3 { margin: 0; font: 400 1rem/1.15 'DM Serif Text', Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 4.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: .55em 0 0; color: var(--suave); }
.topo p { max-width: 34rem; line-height: 1.5; }
.container, .containerlista {
    background: var(--papel);
    border: 1px solid var(--linha);
    border-radius: 22px;
    padding: clamp(15px, 3vw, 28px);
    box-shadow: var(--sombra);
    margin-bottom: 18px;
}
.titulo-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.contador { background: #f8ebdc; color: var(--suave); font-weight: 700; padding: 5px 10px; border-radius: 100px; font-size: .82rem; }
.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.atalhos a { display: flex; flex-direction: column; justify-content: center; min-height: 124px; text-decoration: none; margin: 0; }
.atalhos a:hover { background: #fff1e1; border-color: #d9ad89; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .87rem; color: var(--suave); }
input, select, button { font: inherit; }
input, select {
    background: #fffdfa;
    border: 1px solid #d7bcaa;
    border-radius: 10px;
    min-height: 41px;
    width: 100%;
    color: var(--texto);
    padding: 7px 10px;
}
.btn { min-height: 40px; border-radius: 10px; border: 1px solid transparent; padding: 7px 14px; font-weight: 700; cursor: pointer; }
.btn-salvar { background: var(--caramelo); color: white; }
.btn-salvar:hover { background: #70381f; }
.btn-atualizar { background: var(--pessego); color: #633720; }
.btn-atualizar:hover { background: #efcfac; }
.btn-excluir { background: transparent; border-color: #edd2c5; color: #943d36; }
.btn-excluir:hover { background: #fce9e4; }
.mensagem { margin: 0 0 16px; border: 1px solid; border-radius: 12px; padding: 12px 16px; }
.erro { background: #fff0eb; border-color: #ebc2b2; color: #88382f; }
.sucesso { background: #eff6e8; border-color: #c7d7b6; color: #34572a; }
.tabela-wrapper { overflow-x: auto; border: 1px solid var(--linha); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--linha); }
th { background: #faeddf; color: var(--suave); font-size: .85rem; }
td input, td select { min-width: 84px; }
td input[type=text] { min-width: 140px; }
tr:last-child td { border-bottom: 0; }
.acoes { white-space: nowrap; }
.acoes form { display: inline-block; }
.combinacao { padding: 16px 0; border-top: 1px solid var(--linha); }
.combinacao > form { margin-top: 14px; }
.combinacao select { max-width: 240px; }
.cores { display: flex; flex-wrap: wrap; gap: 20px; margin: 14px 0 20px; }
.cores .campo { background: #fcf2e7; padding: 12px; border-radius: 12px; min-width: 145px; }
.cores output { font: 700 .9rem ui-monospace, monospace; }
.cores input[type=color] { padding: 4px; cursor: pointer; }
.roda-cor {
    position: relative;
    width: 122px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, white, transparent), conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    cursor: crosshair;
    touch-action: none;
}
.roda-cor::after {
    content: '';
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #382117;
    border-radius: 50%;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 850px) {
    .form-grid, .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .form-grid, .atalhos { grid-template-columns: 1fr; }
    .topo { min-height: 165px; border-radius: 18px; }
    .topo img { width: 86px; }
    .menu a { padding: 6px 8px; }
}
