.aeco {
    --ink: #152f2a;
    --muted: #49625a;
    --green: #17644e;
    --line: #ceded6;
    --paper: #f4f8f5;
    color: var(--ink);
    font: 400 16px/1.55 "Inter", "Segoe UI", sans-serif;
    max-width: 1152px;
    margin-inline: auto;
    padding: clamp(12px, 3vw, 34px);
    background: var(--paper);
    border-radius: 24px;
}

.aeco *, .aeco *::before, .aeco *::after { box-sizing: border-box; }
.aeco [hidden] { display: none !important; }
.aeco :is(h1, h2, h3, p) { color: inherit; margin: 0; }
.aeco :is(h1, h2, h3) { font-family: inherit; font-weight: 750; line-height: 1.19; }
.aeco h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.aeco h3 { font-size: 1.16rem; }
.aeco a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.aeco :focus-visible { outline: 3px solid #a55113; outline-offset: 3px; }

.aeco button {
    appearance: none;
    min-height: 44px;
    padding: .55rem .92rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 650;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    cursor: pointer;
}

.aeco button:hover:not(:disabled) { background: #0e4d3b; }
.aeco button:disabled { cursor: default; opacity: .58; }
.aeco button.aeco-quiet { color: var(--green); background: white; border-color: var(--line); }
.aeco button.aeco-quiet:hover:not(:disabled) { background: #e2f0e9; }
.aeco button.aeco-danger { background: #9c302c; }
.aeco button.aeco-danger:hover:not(:disabled) { background: #78231f; }
.aeco-top, .aeco-actions, .aeco-delete-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.aeco-top, .aeco-delete-row { justify-content: space-between; }
.aeco-top { margin-bottom: 16px; }
.aeco-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2.5vw, 28px);
    padding: clamp(16px, 2.65vw, 30px);
    border: 1px solid #cbded3;
    border-radius: 16px;
    background: #e9f4ed;
    color: #143b2d;
}
.aeco .aeco-hero h1 {
    max-width: 820px;
    color: #143b2d;
    font-size: clamp(1.06rem, 1rem + .55vw, 1.55rem);
    font-weight: 750;
    letter-spacing: -.012em;
    line-height: 1.36;
    overflow-wrap: anywhere;
}
.aeco .aeco-hero p { margin-top: 8px; color: #36594b; font-size: .94rem; }
.aeco .aeco-hero .aeco-label { margin: 0 0 6px; color: #236349; font-size: .72rem; font-weight: 750; letter-spacing: .085em; }
.aeco-hero-mark {
    display: grid;
    place-items: center;
    width: clamp(50px, 7vw, 74px);
    aspect-ratio: 1;
    border: 1px solid #c1dbca;
    border-radius: 24%;
    background: #d6ecde;
    color: #236349;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.aeco-teachers { margin-top: 14px; }
.aeco-teachers > summary {
    width: fit-content;
    padding: .6rem .84rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--green);
    font-weight: 700;
    cursor: pointer;
}
.aeco-teachers > summary:hover { background: #e2f0e9; }
.aeco-teachers .aeco-teacher-content { margin-top: 8px; }

.aeco-catalog, .aeco-panel { margin-top: clamp(20px, 4vw, 40px); }
.aeco-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.aeco-card, .aeco-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    padding: clamp(16px, 3vw, 27px);
    overflow-wrap: anywhere;
}
.aeco-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.aeco-card button { margin-top: auto; }
.aeco-card p, .aeco-panel p { color: var(--muted); }
.aeco-card .aeco-meta { font-size: .78rem; font-weight: 700; color: var(--green); }
.aeco-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e7f2e6; font-size: 1.55rem; }
.aeco-card:nth-child(4n+2) .aeco-icon { background: #f6efd9; }
.aeco-card:nth-child(4n+4) .aeco-icon { background: #e4f0f7; }
.aeco-panel > * + *, .aeco form > * + * { margin-top: 12px; }
.aeco form, .aeco fieldset { min-width: 0; }
.aeco form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.aeco legend { color: var(--ink); font-weight: 700; padding-inline: 4px; }
.aeco label { display: block; color: var(--ink); font-weight: 650; }
.aeco :is(input, select, textarea) {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #91aaa0;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}
.aeco input[name="pin"] { max-width: 160px; }
.aeco-fields, .aeco-entry { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.aeco-fields label, .aeco-entry label { flex: 1 1 175px; }
.aeco-entry { margin-block: 10px; }
.aeco-delete-row { border-bottom: 1px solid var(--line); padding-block: 8px; }
.aeco form[data-delete] { border: 1px solid #e9bbb7; border-radius: 10px; padding: 13px; }
.aeco [role="status"]:empty { display: none; }

.aeco-image { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; }
.aeco-hint { padding: 10px 13px; border-radius: 9px; background: #edf6ee; }
.aeco-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.aeco-slots, .aeco-available { display: grid; gap: 7px; min-width: 0; }
.aeco-slot {
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbf9;
    font-weight: 650;
}
.aeco-slot small { font-weight: 400; color: var(--muted); }
.aeco-slot.aeco-current { border-color: #318067; background: #e7f4eb; }
.aeco button.aeco-piece { background: #eef5f0; color: var(--ink); border-color: var(--line); text-align: left; }
.aeco button.aeco-piece:hover:not(:disabled) { background: #d3eadd; border-color: #318067; }
.aeco .aeco-success { color: #164e3c; background: #dff1e2; padding: 10px 13px; border-radius: 9px; font-weight: 750; }

@media (max-width: 620px) {
    .aeco { border-radius: 14px; }
    .aeco-hero { grid-template-columns: 1fr; }
    .aeco-hero-mark { display: none; }
    .aeco-grid, .aeco-board { grid-template-columns: minmax(0, 1fr); }
}
