* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(73, 124, 255, 0.14), transparent 38%),
        #F2F6FA;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.account {
    width: 100%;
}

.account__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.meeting-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 240px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 100% 0, rgba(110, 178, 255, 0.3), transparent 44%),
        linear-gradient(135deg, #1e2d43, #315b8b);
    box-shadow: 0 18px 42px rgba(27, 48, 77, 0.16);
    color: #fff;
}

.meeting-card::after {
    position: absolute;
    z-index: -1;
    right: -54px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.035), 0 0 0 44px rgba(255, 255, 255, 0.025);
    content: "";
    pointer-events: none;
}

.meeting-card__eyebrow {
    margin: 0 0 6px;
    color: #a9ceff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.meeting-card__title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.meeting-card__description {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.meeting-card__clock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.meeting-card__unit {
    min-width: 0;
    padding: 12px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    text-align: center;
    backdrop-filter: blur(8px);
}

.meeting-card__value {
    display: block;
    font-size: clamp(22px, 3vw, 34px);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.1;
}

.meeting-card__label {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meeting-card__status {
    margin: 28px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(161, 208, 255, 0.35);
    border-radius: 14px;
    background: rgba(119, 184, 255, 0.14);
    color: #d7eaff;
    font-size: clamp(18px, 2.6vw, 24px);
    font-weight: 600;
    text-align: center;
}

.meeting-card__clock[hidden],
.meeting-card__status[hidden],
.topic-review-status[hidden],
.admin-topics[hidden],
.admin-topics__status[hidden],
.greeting__photo-status[hidden] {
    display: none;
}

.meeting-topics {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.meeting-topics__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.meeting-topics__list,
.admin-topics__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meeting-topics__item,
.admin-topics__item {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.meeting-topics__empty {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.topic-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.topic-form__label {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
}

.topic-form__controls {
    display: flex;
    gap: 10px;
}

.topic-form__controls[hidden] {
    display: none;
}

.topic-form__input {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    outline: 0;
    background: rgba(9, 25, 46, 0.28);
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.topic-form__input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.topic-form__input:focus-visible {
    border-color: #a9ceff;
    box-shadow: 0 0 0 3px rgba(169, 206, 255, 0.16);
}

.topic-form__button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    background: linear-gradient(135deg, #6aa9ff, #3976da);
    box-shadow: 0 6px 16px rgba(10, 30, 60, 0.2);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 180ms ease, transform 180ms ease;
}

.topic-form__button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.topic-form__button:focus-visible {
    outline: 3px solid #b8d7ff;
    outline-offset: 3px;
}

.topic-form__button:disabled,
.topic-form__input:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.topic-review-status {
    margin: 12px 0 0;
    padding: 11px 13px;
    border: 1px solid rgba(239, 192, 88, 0.4);
    border-radius: 11px;
    background: rgba(255, 195, 64, 0.14);
    color: #ffe5a3;
    font-size: 12px;
    line-height: 1.5;
}

.topic-review-status--approved {
    border-color: rgba(91, 211, 145, 0.42);
    background: rgba(38, 166, 91, 0.18);
    color: #b9f3ce;
}

.topic-review-status--rejected,
.topic-review-status--error {
    border-color: rgba(255, 125, 125, 0.42);
    background: rgba(204, 60, 60, 0.18);
    color: #ffd0d0;
}

.admin-topics {
    min-width: 0;
    padding: clamp(22px, 3.5vw, 32px);
    border: 1px solid rgba(84, 112, 145, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #edf4fc);
    box-shadow: 0 14px 36px rgba(27, 48, 77, 0.06);
    color: #253b5b;
}

.admin-topics__eyebrow {
    margin: 0 0 6px;
    color: #5276a4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.admin-topics__title {
    margin: 0 0 20px;
    font-size: clamp(20px, 2.5vw, 26px);
    letter-spacing: -0.03em;
}

.admin-topics .topic-form {
    margin-top: 0;
    padding-top: 0;
    border: 0;
}

.admin-topics .topic-form__label {
    color: #425875;
}

.admin-topics .topic-form__input {
    border-color: rgba(47, 82, 125, 0.2);
    background: #fff;
    color: #253b5b;
}

.admin-topics .topic-form__input::placeholder {
    color: #8594a8;
}

.admin-topics__status {
    margin: 10px 0 0;
    color: #315a8c;
    font-size: 12px;
}

.admin-topics__subtitle {
    margin: 24px 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.admin-topics__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-color: rgba(47, 82, 125, 0.12);
    background: #fff;
    color: #344a65;
}

.admin-topics__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.admin-topics__list .meeting-topics__empty {
    color: #718198;
}

.admin-topics__approve {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #3976da;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.admin-topics__approve:disabled {
    cursor: wait;
    opacity: 0.65;
}

.admin-topics__reject {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(194, 65, 65, 0.24);
    border-radius: 8px;
    background: #fff0f0;
    color: #a52f39;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.admin-topics__reject:disabled {
    cursor: wait;
    opacity: 0.65;
}

.greeting {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 340px;
    padding: clamp(28px, 5.5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(120deg, #202b3b 0%, #253b5b 58%, #315a8c 100%);
    box-shadow: 0 24px 70px rgba(27, 48, 77, 0.2);
}

.greeting::before,
.greeting::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.greeting::before {
    width: 360px;
    height: 360px;
    top: -220px;
    right: 12%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025), 0 0 0 72px rgba(255, 255, 255, 0.02);
}

.greeting::after {
    width: 280px;
    height: 280px;
    right: 8%;
    bottom: -210px;
    background: rgba(95, 160, 255, 0.16);
    filter: blur(8px);
}

.greeting__content {
    max-width: 640px;
}

.greeting__home-link {
    width: fit-content;
    min-height: 44px;
    margin-bottom: 30px;
    padding: 0 17px 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.greeting__home-link:hover {
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.16);
}

.greeting__home-link:focus-visible {
    outline: 3px solid #b8d7ff;
    outline-offset: 4px;
}

.greeting__home-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
    line-height: 24px;
}

.greeting__eyebrow {
    margin: 0 0 16px;
    color: #9fc5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.greeting-main-text {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #fff;
    overflow-wrap: anywhere;
}

.greeting__description {
    max-width: 440px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
}

.greeting__editor-link {
    display: inline-flex;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.greeting__editor-link[hidden] {
    display: none;
}

.greeting__profile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.greeting__photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.greeting__photo {
    width: clamp(128px, 16vw, 176px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 42px rgba(9, 24, 45, 0.25);
}

.account__image {
    display: block;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    object-fit: cover;
}

.greeting__photo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.greeting__photo-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.greeting__photo-status {
    max-width: 220px;
    margin: 0;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.admin-topics__list-wrapper {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-topics__time-panel {
    position: sticky;
    bottom: 0;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(47, 82, 125, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 252, 0.98));
}

.admin-topics__time-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(57, 118, 218, 0.25);
    border-radius: 11px;
    background: linear-gradient(135deg, #6aa9ff, #3976da);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-topics__time-form {
    margin-top: 12px;
}

.admin-topics__time-label {
    display: block;
    margin-bottom: 8px;
    color: #425875;
    font-size: 12px;
    font-weight: 600;
}

.admin-topics__time-controls {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    body {
        padding: 16px 16px 0;
    }

    .account__panels {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .meeting-card,
    .admin-topics {
        min-height: 220px;
        border-radius: 20px;
    }

    .meeting-card__clock {
        gap: 7px;
        margin-top: 22px;
    }

    .meeting-card__unit {
        padding: 11px 4px 9px;
    }

    .topic-form__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .greeting {
        min-height: 0;
        padding: 30px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        border-radius: 22px;
    }

    .greeting__profile {
        width: 100%;
        justify-content: center;
    }

    .greeting__photo {
        width: clamp(88px, 25vw, 112px);
    }

    .greeting__eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .greeting-main-text {
        font-size: clamp(30px, 9vw, 44px);
    }

    .greeting__description {
        margin-top: 14px;
    }
}

@media (max-width: 360px) {
    .greeting__profile {
        align-items: center;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .greeting__home-link {
        transition: none;
    }
}
