:root {
    --bg: #f5efe5;
    --bg-deep: #e7ddce;
    --panel: rgba(255, 251, 246, 0.84);
    --panel-strong: #fffaf3;
    --panel-soft: rgba(255, 244, 228, 0.72);
    --line: rgba(61, 52, 45, 0.12);
    --text: #241d19;
    --muted: #675f59;
    --brand: #20463e;
    --brand-strong: #142f2a;
    --brand-soft: #dce9e5;
    --accent: #c46e3d;
    --shadow: 0 24px 60px rgba(36, 29, 25, 0.08);
    --shadow-strong: 0 22px 44px rgba(36, 29, 25, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(196, 110, 61, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(32, 70, 62, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf6ee 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.28;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.yu-shell {
    position: relative;
    min-height: 100vh;
    padding: 0;
}

.yu-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 28px;
    display: grid;
    gap: 24px;
}

.yu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 2px;
}

.yu-header__brand {
    display: grid;
    gap: 10px;
}

.yu-brand__lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.yu-brand__mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff7ef;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: var(--shadow-strong);
}

.yu-brand__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.96;
}

.yu-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.yu-link-button,
.yu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.yu-button:hover,
.yu-link-button:hover,
.yu-button:focus-visible,
.yu-link-button:focus-visible,
.yu-launcher__item:hover,
.yu-launcher__item:focus-visible {
    transform: translateY(-2px);
}

.yu-button {
    background: linear-gradient(135deg, var(--brand) 0%, #2b5d52 100%);
    color: #fff9f3;
    box-shadow: var(--shadow);
}

.yu-button--soft {
    background: var(--brand-soft);
    color: var(--brand);
}

.yu-button--ghost,
.yu-link-button {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    border-color: var(--line);
}

.yu-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    color: var(--muted);
}

.yu-home {
    display: grid;
    gap: 24px;
}

.yu-panel {
    border-radius: 30px;
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.yu-panel--feed {
    padding: 24px;
}

.yu-panel h3 {
    margin: 0 0 10px;
}

.yu-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.yu-tools__actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.yu-launcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.yu-launcher__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(36, 29, 25, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.74)),
        linear-gradient(120deg, var(--module-accent, var(--brand)) 0%, transparent 65%);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.yu-launcher__item::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--module-accent, var(--brand)) 20%, transparent);
    opacity: 0.5;
}

.yu-launcher__icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: color-mix(in srgb, var(--module-accent, var(--brand)) 18%, white);
    color: var(--module-accent, var(--brand));
    box-shadow: inset 0 0 0 1px rgba(36, 29, 25, 0.08);
}

.yu-launcher__icon svg {
    width: 34px;
    height: 34px;
}

.yu-launcher__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
}

.yu-launcher__title {
    font-size: 1.2rem;
    font-weight: 700;
}

.yu-launcher__description {
    color: var(--muted);
    line-height: 1.45;
}

.yu-launcher__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(36, 29, 25, 0.08);
    color: var(--brand-strong);
    font-weight: 700;
    white-space: nowrap;
}

.yu-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
}

.yu-feed-panel {
    margin-top: 18px;
}

.yu-feed {
    display: grid;
    gap: 12px;
}

.yu-feed__item {
    display: block;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(36, 29, 25, 0.08);
}

.yu-feed__item strong {
    display: block;
    margin-bottom: 6px;
}

.yu-feed__meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.yu-note-list {
    display: grid;
    gap: 12px;
}

.yu-note {
    padding: 16px;
    border-radius: 22px;
    background: var(--panel-soft);
    border: 1px solid rgba(36, 29, 25, 0.08);
}

.yu-note strong {
    display: block;
    margin-bottom: 6px;
}

.yu-module {
    position: relative;
    min-height: 100vh;
}

.yu-module__frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.yu-shell--module {
    padding: 0;
    background: #fff;
}

.yu-empty {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px dashed rgba(36, 29, 25, 0.16);
    color: var(--muted);
}

.yu-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(20, 47, 42, 0.96);
    color: #fffaf3;
    box-shadow: var(--shadow-strong);
    z-index: 999;
}

@media (max-width: 1080px) {
    .yu-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .yu-shell {
        padding: 0;
    }

    .yu-main {
        padding: 18px;
    }

    .yu-header {
        flex-direction: column;
        align-items: stretch;
    }

    .yu-header__actions {
        justify-content: flex-start;
    }

    .yu-launcher__item {
        grid-template-columns: auto 1fr;
    }

    .yu-launcher__cta {
        grid-column: 1 / -1;
        justify-self: start;
    }

}
