﻿/* PLACE AT: WorldScholarArena.Backend/wwwroot/academy/css/am.css   (Alexia Mails: the public site, the app and the console) */
:root {
    --em: #0b4a38;
    --emd: #06281e;
    --em2: #0f5c46;
    --gold: #b8891a;
    --goldl: #e5c765;
    --cream: #fbf6e6;
    --paper: #f6f2e7;
    --ink: #1d2a26;
    --mut: #55645e;
    --line: #e3dccb;
    --line2: #d9d0b4;
    --ok: #1f7a5c;
    --bad: #a33a2f;
    --warn: #9a6b00;
    --blue: #2a6db0;
    --red: #c5483b;
    --r: 14px;
    --sh: 0 10px 30px rgba(6,40,30,.10),0 2px 6px rgba(6,40,30,.06);
    --serif: Georgia,'Times New Roman',serif;
    --sans: system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif
}

* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    font: 15px/1.55 var(--sans);
    color: var(--ink);
    background: var(--paper)
}

a {
    color: var(--em)
}

img {
    max-width: 100%
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--emd);
    line-height: 1.2;
    margin: 0 0 .5em;
    text-wrap: balance
}

button, input, select, textarea {
    font: inherit;
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--goldl);
    outline-offset: 2px
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}
/* buttons and fields */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    background: var(--em);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 3px solid var(--gold);
    transition: transform .08s,background .15s;
    white-space: nowrap
}

    .btn:hover {
        background: var(--em2)
    }

    .btn:active {
        transform: translateY(1px)
    }

    .btn[disabled] {
        opacity: .55;
        cursor: not-allowed
    }

    .btn.gold {
        background: var(--goldl);
        color: var(--emd);
        border-bottom-color: var(--gold)
    }

        .btn.gold:hover {
            background: #efd57d
        }

    .btn.ghost, .btn.line {
        background: #fff;
        color: var(--em);
        border: 1.5px solid var(--line2);
        border-bottom-width: 1.5px
    }

        .btn.ghost:hover, .btn.line:hover {
            background: var(--cream)
        }

    .btn svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: 0 0 18px
    }

    .btn.danger {
        background: var(--bad);
        border-bottom-color: #6e1f17
    }

    .btn.sm {
        padding: 6px 11px;
        font-size: 13px;
        border-radius: 8px
    }

    .btn.lg {
        padding: 15px 26px;
        font-size: 17px
    }

.fld {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 12px
}

    .fld label, .lbl {
        font-weight: 700;
        font-size: 13px;
        color: var(--emd)
    }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=datetime-local], input[type=date], input[type=time], input[type=color], select, textarea, .in {
    width: 100%;
    border: 1.5px solid var(--line2);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    min-width: 0
}

textarea {
    resize: vertical
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--em);
        outline: none;
        box-shadow: 0 0 0 3px rgba(229,199,101,.45)
    }

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

    .row > * {
        flex: 1 1 180px
    }

    .row > .btn, .row > .mode, .row > a.btn, .row > button {
        flex: 0 0 auto
    }

.grow {
    flex: 1
}

.right {
    margin-left: auto
}

.hint {
    font-size: 13px;
    color: var(--mut)
}

.ink2 {
    color: var(--mut)
}

.ok {
    color: var(--ok)
}

.bad {
    color: var(--bad)
}

.pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eee8d6;
    color: var(--emd)
}

    .pill.g {
        background: #d8efe4;
        color: #0d5a3f
    }

    .pill.r {
        background: #f6d9d4;
        color: #7a2219
    }

    .pill.a {
        background: #f6e6b9;
        color: #6a4a00
    }

    .pill.b {
        background: #dbe8f6;
        color: #1d4f86
    }

.note {
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    margin: 0 0 14px
}

    .note.ok {
        border-left-color: var(--ok)
    }

    .note.no {
        border-left-color: var(--bad)
    }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: 0 1px 2px rgba(6,40,30,.04)
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: var(--emd);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--sh);
    z-index: 200;
    max-width: min(92vw,560px);
    border-left: 5px solid var(--goldl)
}

    .toast.bad {
        border-left-color: #f19a8e
    }

.modal-b {
    position: fixed;
    inset: 0;
    background: rgba(6,40,30,.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 14px;
    z-index: 150;
    overflow: auto
}

.modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--sh);
    padding: 22px;
    width: min(560px,100%);
    border-top: 5px solid var(--gold)
}

    .modal.wide {
        width: min(980px,100%)
    }

.empty {
    text-align: center;
    padding: 42px 14px;
    color: var(--mut)
}

    .empty b {
        display: block;
        font: 700 18px var(--serif);
        color: var(--emd);
        margin-bottom: 6px
    }

table.t {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden
}

    table.t th {
        text-align: left;
        font-size: 12px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--mut);
        background: var(--cream);
        padding: 10px
    }

    table.t td {
        padding: 10px;
        border-top: 1px solid var(--line);
        vertical-align: top
    }

.scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px
}

.bar {
    height: 10px;
    border-radius: 99px;
    background: #ece5d1;
    overflow: hidden
}

    .bar > i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg,var(--gold),var(--goldl))
    }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 12px;
    margin: 0 0 16px
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px
}

    .stat b {
        display: block;
        font: 700 24px var(--serif);
        color: var(--emd)
    }

    .stat span {
        font-size: 12px;
        color: var(--mut);
        text-transform: uppercase;
        letter-spacing: .05em
    }

/* ---------------------------------------------------------------- the public site */
.site-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251,246,230,.94);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--line)
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px
}

.site-top .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

    .brand img {
        width: 40px;
        height: 40px
    }

    .brand b {
        font: 700 21px var(--serif);
        color: var(--emd)
    }

        .brand b span {
            color: var(--gold);
            font-weight: 400
        }

.site-top nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
    align-items: center
}

    .site-top nav a {
        text-decoration: none;
        font-weight: 600;
        color: var(--emd)
    }

        .site-top nav a.btn {
            color: #fff
        }

@media(max-width:760px) {
    .site-top nav a.hide-sm {
        display: none
    }
}

.hero {
    background: radial-gradient(1200px 500px at 85% -10%,rgba(229,199,101,.35),transparent),linear-gradient(160deg,var(--em2),var(--emd));
    color: #fff;
    overflow: hidden
}

    .hero .wrap {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 42px;
        align-items: center;
        padding-top: 64px;
        padding-bottom: 64px
    }

    .hero h1 {
        color: #fff;
        font-size: clamp(34px,5vw,56px);
        margin-bottom: 16px
    }

        .hero h1 em {
            color: var(--goldl);
            font-style: normal
        }

    .hero p.lead {
        font-size: 19px;
        color: #d8ece2;
        max-width: 560px
    }

.kick {
    display: inline-block;
    font: 700 12px var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--goldl);
    margin-bottom: 12px
}

.hero .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 26px 0 14px
}

.hero small {
    color: #a9c9bb
}

.hero-art img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35)
}

@media(max-width:900px) {
    .hero .wrap {
        grid-template-columns: 1fr
    }

    .hero-art {
        order: -1
    }
}

.band {
    padding: 72px 0
}

    .band.alt {
        background: #fff
    }

    .band.dark {
        background: var(--emd);
        color: #e6f1ec
    }

        .band.dark h2 {
            color: #fff
        }

    .band h2 {
        font-size: clamp(28px,3.6vw,40px);
        text-align: center
    }

    .band p.sub {
        text-align: center;
        color: var(--mut);
        max-width: 760px;
        margin: 0 auto 34px;
        font-size: 17px
    }

    .band.dark p.sub {
        color: #b9d5c8
    }

.grid3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center
}

@media(max-width:900px) {
    .grid3 {
        grid-template-columns: 1fr 1fr
    }

    .grid2 {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    .grid3 {
        grid-template-columns: 1fr
    }
}

.feat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(6,40,30,.04)
}

    .feat i {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--cream);
        border: 1px solid var(--line2);
        margin-bottom: 12px
    }

        .feat i svg {
            width: 24px;
            height: 24px;
            stroke: var(--em);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

    .feat h3 {
        font-size: 19px;
        margin-bottom: 6px
    }

    .feat p {
        margin: 0;
        color: var(--mut)
    }

.art {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--sh)
}

.checks {
    list-style: none;
    padding: 0;
    margin: 14px 0
}

    .checks li {
        padding: 7px 0 7px 32px;
        position: relative
    }

        .checks li:before {
            content: "";
            position: absolute;
            left: 0;
            top: 9px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--em) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' stroke='%23e5c765' stroke-width='2.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat
        }

.records {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

    .records div {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(229,199,101,.35);
        border-radius: 16px;
        padding: 20px;
        text-align: center
    }

    .records b {
        display: block;
        font: 700 34px var(--serif);
        color: var(--goldl)
    }

    .records span {
        font-size: 13px;
        color: #b9d5c8
    }

@media(max-width:800px) {
    .records {
        grid-template-columns: 1fr 1fr
    }
}

.cmp {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line)
}

    .cmp th, .cmp td {
        padding: 13px 14px;
        border-bottom: 1px solid var(--line);
        text-align: center
    }

        .cmp th:first-child, .cmp td:first-child {
            text-align: left
        }

    .cmp thead th {
        background: var(--cream);
        font-family: var(--serif);
        color: var(--emd)
    }

    .cmp td.y {
        color: var(--ok);
        font-weight: 800
    }

    .cmp td.n {
        color: #b4ab95
    }

    .cmp .us {
        background: #f4faf6
    }

.plans {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    align-items: stretch
}

@media(max-width:900px) {
    .plans {
        grid-template-columns: 1fr
    }
}

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column
}

    .plan.best {
        border: 2px solid var(--gold);
        box-shadow: var(--sh);
        position: relative
    }

        .plan.best:before {
            content: "Most chosen";
            position: absolute;
            top: -13px;
            left: 24px;
            background: var(--goldl);
            color: var(--emd);
            font: 800 12px var(--sans);
            padding: 4px 10px;
            border-radius: 99px
        }

    .plan h3 {
        font-size: 22px
    }

    .plan .price {
        font: 700 40px var(--serif);
        color: var(--emd)
    }

        .plan .price small {
            font: 500 15px var(--sans);
            color: var(--mut)
        }

    .plan .checks {
        flex: 1
    }

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 10px
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--emd)
}

.faq p {
    margin: 10px 0 0;
    color: var(--mut)
}

.site-foot {
    background: var(--emd);
    color: #a9c9bb;
    padding: 34px 0;
    font-size: 14px
}

    .site-foot a {
        color: var(--goldl)
    }

.auth {
    max-width: 540px;
    margin: 46px auto;
    padding: 0 16px
}

    .auth .card {
        padding: 28px;
        border-top: 5px solid var(--gold)
    }

.seg {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin: 0 0 14px
}

    .seg button {
        border: 1.5px solid var(--line2);
        background: #fff;
        border-radius: 12px;
        padding: 12px 8px;
        cursor: pointer;
        font-weight: 700;
        color: var(--emd)
    }

        .seg button[aria-pressed=true] {
            border-color: var(--em);
            background: #eef7f2;
            box-shadow: inset 0 0 0 1px var(--em)
        }

        .seg button small {
            display: block;
            font-weight: 500;
            color: var(--mut);
            font-size: 12px
        }

.pwbar {
    height: 6px;
    border-radius: 9px;
    background: #ece5d1;
    overflow: hidden;
    margin-top: 6px
}

    .pwbar i {
        display: block;
        height: 100%;
        width: 0
    }

/* ---------------------------------------------------------------- the application */
.app {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh
}

.side {
    background: var(--emd);
    color: #d5e6de;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto
}

    .side .brand {
        padding: 4px 6px 14px
    }

        .side .brand b {
            color: #fff
        }

            .side .brand b span {
                color: var(--goldl)
            }

    .side .write {
        margin: 2px 4px 12px
    }

    .side a.nv {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 10px;
        text-decoration: none;
        color: #d5e6de;
        font-weight: 600
    }

        .side a.nv:hover {
            background: rgba(255,255,255,.07)
        }

        .side a.nv.on {
            background: rgba(229,199,101,.16);
            color: #fff;
            box-shadow: inset 3px 0 0 var(--goldl)
        }

        .side a.nv svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex: 0 0 18px
        }

        .side a.nv em {
            margin-left: auto;
            font-style: normal;
            font-size: 12px;
            background: var(--goldl);
            color: var(--emd);
            border-radius: 99px;
            padding: 0 7px;
            font-weight: 800
        }

    .side .grp {
        font-size: 11px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #7fa797;
        margin: 14px 10px 4px
    }

    .side .me {
        margin-top: auto;
        padding: 12px 8px 4px;
        border-top: 1px solid rgba(255,255,255,.1);
        font-size: 13px
    }

        .side .me b {
            display: block;
            color: #fff
        }

        .side .me button {
            background: none;
            border: 0;
            color: var(--goldl);
            padding: 0;
            cursor: pointer;
            font-weight: 700;
            margin-top: 4px
        }

.main {
    min-width: 0;
    display: flex;
    flex-direction: column
}

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20
}

    .topbar h1 {
        font-size: 22px;
        margin: 0
    }

    .topbar .menu {
        display: none;
        background: none;
        border: 0;
        font-size: 22px;
        cursor: pointer
    }

.page {
    padding: 22px;
    max-width: 1280px;
    width: 100%
}

.banner {
    margin: 14px 22px 0
}

@media(max-width:900px) {
    .app {
        grid-template-columns: 1fr
    }

    .side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 270px;
        z-index: 120;
        transform: translateX(-105%);
        transition: transform .2s
    }

        .side.open {
            transform: none
        }

    .topbar .menu {
        display: block
    }

    .page {
        padding: 14px
    }
}
/* inbox */
.mail {
    display: grid;
    grid-template-columns: minmax(320px,430px) 1fr;
    gap: 0;
    height: calc(100vh - 66px);
    border-top: 0
}

    .mail .list {
        border-right: 1px solid var(--line);
        overflow: auto;
        background: #fff
    }

    .mail .read {
        overflow: auto;
        background: var(--paper)
    }

.views {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2
}

    .views button {
        border: 1px solid var(--line2);
        background: #fff;
        border-radius: 99px;
        padding: 5px 11px;
        font-size: 13px;
        font-weight: 700;
        color: var(--emd);
        cursor: pointer;
        white-space: nowrap
    }

        .views button[aria-pressed=true] {
            background: var(--em);
            border-color: var(--em);
            color: #fff
        }

.msg {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #efe9da;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    background: none;
    font: inherit;
    color: inherit
}

    .msg:hover {
        background: #fbf9f2
    }

    .msg.sel {
        background: #eef7f2;
        border-left-color: var(--gold)
    }

    .msg .av {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-weight: 800;
        color: #fff;
        background: var(--em)
    }

    .msg b {
        display: block;
        font-weight: 600;
        color: var(--ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .msg.un b {
        font-weight: 800
    }

    .msg .sj {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .msg.un .sj {
        font-weight: 700
    }

    .msg .sn {
        font-size: 13px;
        color: var(--mut);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .msg time {
        font-size: 12px;
        color: var(--mut);
        white-space: nowrap
    }

    .msg .tags {
        display: flex;
        gap: 4px;
        margin-top: 3px
    }

.reader {
    padding: 22px
}

    .reader h2 {
        font-size: 24px
    }

    .reader .meta {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 14px;
        color: var(--mut);
        font-size: 14px
    }

    .reader iframe {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        min-height: 420px
    }

    .reader .acts {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 0 0 14px
    }

.atts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0
}

    .atts a {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        border: 1px solid var(--line2);
        background: #fff;
        border-radius: 10px;
        padding: 7px 10px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600
    }

@media(max-width:900px) {
    .mail {
        grid-template-columns: 1fr;
        height: auto
    }

        .mail.open .list {
            display: none
        }

        .mail:not(.open) .read {
            display: none
        }
}
/* compose */
.compose .hdr {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px 10px;
    align-items: center
}

    .compose .hdr label {
        font-weight: 700;
        color: var(--mut);
        font-size: 13px;
        text-align: right
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1.5px solid var(--line2);
    border-radius: 10px;
    padding: 6px;
    background: #fff;
    min-height: 44px;
    position: relative
}

    .chips:focus-within {
        border-color: var(--em);
        box-shadow: 0 0 0 3px rgba(229,199,101,.45)
    }

    .chips input {
        border: 0 !important;
        box-shadow: none !important;
        flex: 1;
        min-width: 160px;
        padding: 6px !important
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef7f2;
    border: 1px solid #cfe5da;
    border-radius: 99px;
    padding: 3px 6px 3px 10px;
    font-size: 13px
}

    .chip button {
        border: 0;
        background: none;
        cursor: pointer;
        font-weight: 800;
        color: var(--mut)
    }

    .chip.bad {
        background: #fbe8e4;
        border-color: #f0c4bc
    }

.sugg {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--line2);
    border-radius: 10px;
    box-shadow: var(--sh);
    z-index: 30;
    max-height: 240px;
    overflow: auto
}

    .sugg button {
        display: block;
        width: 100%;
        text-align: left;
        border: 0;
        background: none;
        padding: 8px 12px;
        cursor: pointer
    }

        .sugg button:hover, .sugg button.on {
            background: var(--cream)
        }

.tools {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px;
    border: 1.5px solid var(--line2);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--cream)
}

    .tools button {
        border: 1px solid transparent;
        background: none;
        border-radius: 8px;
        padding: 5px 9px;
        cursor: pointer;
        font-weight: 700;
        color: var(--emd);
        min-width: 34px
    }

        .tools button:hover {
            background: #fff;
            border-color: var(--line2)
        }

    .tools .sep {
        width: 1px;
        background: var(--line2);
        margin: 3px 4px
    }

.editor {
    min-height: 320px;
    border: 1.5px solid var(--line2);
    border-radius: 0 0 10px 10px;
    padding: 16px;
    background: #fff;
    font: 16px/1.65 var(--serif);
    overflow: auto
}

    .editor:focus {
        outline: none;
        border-color: var(--em)
    }

    .editor img {
        max-width: 100%
    }

.files {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0
}

.file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line2);
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    font-size: 13px
}

    .file .bar {
        width: 80px;
        height: 6px
    }

.mode {
    display: inline-flex;
    border: 1.5px solid var(--line2);
    border-radius: 10px;
    overflow: hidden
}

    .mode button {
        border: 0;
        background: #fff;
        padding: 8px 14px;
        font-weight: 700;
        cursor: pointer;
        color: var(--emd)
    }

        .mode button[aria-pressed=true] {
            background: var(--em);
            color: #fff
        }

.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 14px
}

.tpl {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .tpl h4 {
        margin: 0;
        font-size: 16px
    }

    .tpl .prev {
        font-size: 13px;
        color: var(--mut);
        height: 60px;
        overflow: hidden
    }
/* calendar */
.cal {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff
}

    .cal .dh {
        background: var(--cream);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: 8px;
        color: var(--mut)
    }

    .cal .d {
        min-height: 112px;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        padding: 6px;
        font-size: 12px;
        cursor: pointer
    }

        .cal .d:nth-child(7n+1) {
            border-left: 0
        }

        .cal .d.out {
            background: #faf8f2;
            color: #a79f8a
        }

        .cal .d.today .n {
            background: var(--em);
            color: #fff;
            border-radius: 99px;
            padding: 1px 7px
        }

    .cal .n {
        font-weight: 800;
        display: inline-block;
        margin-bottom: 4px
    }

.ev {
    display: block;
    border-radius: 6px;
    padding: 2px 6px;
    margin: 2px 0;
    color: #fff;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer
}

@media(max-width:700px) {
    .cal .d {
        min-height: 70px
    }

    .ev {
        font-size: 10px
    }
}

.agenda li {
    list-style: none;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}
/* admin */
.adm .wrap {
    max-width: 1320px
}
