* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f3f3f3;
    color: #222;
    font-family: Inter, Arial, sans-serif;
}

a {
    color: #3977b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    height: 6px;
    background: #3977b9;
}

header {
    background: #fff;
    border-bottom: 1px solid #d5d5d5;
}

.header-inner {
    width: min(1050px, calc(100% - 40px));
    min-height: 72px;
    margin: auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #222;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.brand-text h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    color: #888;
    font-size: 12px;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

nav a {
    color: #444;
}

nav a:hover {
    color: #3977b9;
    text-decoration: none;
}

.nav-login {
    padding: 8px 13px;
    border: 1px solid #3977b9;
    color: #3977b9;
}

.nav-login:hover {
    background: #3977b9;
    color: #fff;
}

main {
    width: min(1050px, calc(100% - 40px));
    margin: auto;
}

.hero {
    padding: 75px 0 70px;
    border-bottom: 1px solid #d5d5d5;
}

.hero small {
    color: #3977b9;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    max-width: 720px;
    margin: 12px 0 18px;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 700;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.button {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #3977b9;
    background: #3977b9;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 20px;
    cursor: pointer;
}

.button:hover {
    background: #2f669f;
    text-decoration: none;
}

.button.secondary {
    background: #fff;
    color: #3977b9;
}

.button.secondary:hover {
    background: #e9f0f7;
}

section {
    padding: 50px 0;
    border-bottom: 1px solid #d5d5d5;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h3 {
    margin: 0 0 5px;
    font-size: 23px;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project {
    min-height: 190px;
    padding: 24px;
    background: #fff;
    border: 1px solid #d5d5d5;
}

.project-label {
    color: #3977b9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project h4 {
    margin: 12px 0 8px;
    font-size: 21px;
}

.project p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about > p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.info-box {
    padding: 22px;
    background: #fff;
    border: 1px solid #d5d5d5;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.info-box p {
    margin: 0 0 18px;
    color: #555;
    font-size: 13px;
}

.account-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.login-box,
.confirmation-box {
    width: 100%;
    max-width: 430px;
    padding: 35px;
    background: #fff;
    border: 1px solid #d5d5d5;
}

.login-box .section-heading {
    margin-bottom: 30px;
}

.login-box label {
    display: block;
    margin: 0 0 7px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
}

.login-box input {
    width: 100%;
    height: 42px;
    margin-bottom: 19px;
    padding: 0 11px;
    border: 1px solid #c8c8c8;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.login-box input:focus {
    border-color: #3977b9;
}

.form-button {
    width: 100%;
    margin-top: 4px;
    font-family: inherit;
}

.form-message {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    background: #f5f5f5;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.form-message:empty {
    display: none;
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
    font-size: 12px;
}

.confirmation-box {
    text-align: center;
}

.confirmation-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    border: 1px solid #3977b9;
    color: #3977b9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.confirmation-box h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.confirmation-box p {
    margin: 0 auto 25px;
    max-width: 330px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* Developer Portal */

.developer-page {
    padding: 28px 0 50px;
}

.profile-search-section {
    padding: 0 0 25px;
    border-bottom: 1px solid #d5d5d5;
}

.profile-search {
    display: flex;
    width: 100%;
    max-width: 650px;
    gap: 7px;
}

.profile-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #c8c8c8;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.profile-search input:focus {
    border-color: #3977b9;
}

.profile-search .button {
    height: 38px;
    padding: 8px 16px;
}

#profile-search-results {
    width: 100%;
    max-width: 650px;
    margin-top: 8px;
}

.profile-search-result {
    width: 100%;
    min-height: 58px;
    margin: 0 0 5px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #222;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-search-result:hover {
    background: #f7f9fb;
    border-color: #3977b9;
}

.profile-search-result img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background: #eee;
}

.profile-search-result div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-search-result strong {
    font-size: 13px;
    line-height: 1.25;
}

.profile-search-result span {
    color: #777;
    font-size: 12px;
    line-height: 1.25;
}

/* Profile */

.profile-section {
    padding: 28px 0 32px;
    border-bottom: 1px solid #d5d5d5;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-avatar-container {
    width: 120px;
    flex: 0 0 120px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    display: block;
    border: 1px solid #d5d5d5;
    background: #eee;
    object-fit: cover;
}

.profile-info {
    min-width: 0;
    padding-top: 1px;
}

.profile-username {
    margin-bottom: 3px;
    color: #3977b9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-info h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.profile-role {
    margin: 5px 0 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.profile-bio {
    max-width: 650px;
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.65;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 12px;
}

.profile-links a,
.profile-links span {
    font-size: 12px;
}

/* Account */

.account-menu {
    position: relative;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 3px 8px 3px 4px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.account-button:hover {
    border-color: #3977b9;
    color: #3977b9;
}

.account-button img {
    width: 28px;
    height: 28px;
    border: 1px solid #d5d5d5;
    background: #eee;
    object-fit: cover;
    border-radius: 50%;
}

.account-arrow {
    color: #888;
    font-size: 10px;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    display: none;
    width: 175px;
    padding: 4px;
    background: #fff;
    border: 1px solid #d5d5d5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.account-dropdown.show {
    display: block;
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    background: transparent;
    color: #444;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f1f4f7;
    color: #3977b9;
    text-decoration: none;
}

/* Edit Profile */

.profile-edit-section {
    display: none;
    padding: 28px 0 32px;
    border-bottom: 1px solid #d5d5d5;
}

.profile-edit-section.show {
    display: block;
}

.profile-edit-section form {
    width: 100%;
    max-width: 650px;
}

.profile-edit-section label {
    display: block;
    margin: 0 0 6px;
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

.profile-edit-section input,
.profile-edit-section textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 9px 10px;
    border: 1px solid #c8c8c8;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.profile-edit-section input {
    height: 38px;
}

.profile-edit-section textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.profile-edit-section input:focus,
.profile-edit-section textarea:focus {
    border-color: #3977b9;
}

.profile-edit-section .form-button {
    width: auto;
    margin-top: 2px;
}

.edit-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.edit-avatar .profile-avatar {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
}

.avatar-button {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #3977b9;
    background: #fff;
    color: #3977b9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.avatar-button:hover {
    background: #e9f0f7;
}

.avatar-button input[type="file"] {
    display: none;
}

/* Developer Management */

.developer-management {
    padding: 28px 0 0;
}

.portal-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.portal-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.portal-section h4 {
    margin: 0 0 11px;
    font-size: 15px;
}

.developer-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.developer-entry:last-child {
    border-bottom: 0;
}

.developer-entry strong,
.developer-entry span {
    display: block;
}

.developer-entry strong {
    font-size: 13px;
}

.developer-entry span {
    margin-top: 2px;
    color: #777;
    font-size: 12px;
}

.developer-entry .button {
    flex-shrink: 0;
    padding: 7px 12px;
}

/* Footer */

footer {
    width: min(1050px, calc(100% - 40px));
    margin: auto;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #888;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

/* Mobile */

@media (max-width: 700px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 36px;
    }

    .projects,
    .about {
        grid-template-columns: 1fr;
    }

    .login-box,
    .confirmation-box {
        padding: 25px;
    }

    .login-links {
        flex-direction: column;
    }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .profile-avatar-container {
        width: 100px;
        flex: 0 0 100px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        width: 100%;
    }

    .profile-info h2 {
        font-size: 25px;
    }

    .profile-links {
        gap: 9px 13px;
    }

    .account-dropdown {
        left: 0;
        right: auto;
    }

    .developer-entry {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .developer-entry .button {
        width: auto;
    }

    .profile-search {
        flex-direction: column;
    }

    .profile-search .button {
        width: 100%;
    }

    .edit-avatar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    main,
    .header-inner,
    footer {
        width: min(100% - 28px, 1050px);
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .section-heading h3 {
        font-size: 21px;
    }

    .profile-info h2 {
        font-size: 23px;
    }

    .account-button {
        width: 100%;
        justify-content: space-between;
    }

    nav {
        gap: 10px 14px;
    }
}

/* Planner */

.planner-page {
    padding: 30px 0 55px;
}

.planner-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #d5d5d5;
}

.planner-heading h2 {
    margin: 0 0 5px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.planner-heading p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.planner-heading .button {
    flex-shrink: 0;
}

#planner-message {
    margin-top: 15px;
}

.planner-board {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-top: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.planner-category {
    width: 285px;
    min-width: 285px;
    background: #fff;
    border: 1px solid #d5d5d5;
}

.planner-category-header {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 43px;
    padding: 5px 7px 5px 11px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.planner-category-title {
    min-width: 0;
    flex: 1;
    height: 30px;
    padding: 4px 5px;
    border: 1px solid transparent;
    background: transparent;
    color: #333;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.planner-category-title:hover,
.planner-category-title:focus {
    border-color: #c8c8c8;
    background: #fff;
}

.planner-delete-category,
.planner-delete-task {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
}

.planner-delete-category:hover,
.planner-delete-task:hover {
    background: #eee;
    color: #3977b9;
}

.planner-task-list {
    padding: 7px;
}

.planner-task {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 4px 5px;
    border-bottom: 1px solid #eee;
}

.planner-task:last-child {
    border-bottom: 0;
}

.planner-task:hover {
    background: #f8f8f8;
}

.planner-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 0;
    border: 1px solid #aaa;
    background: #fff;
    color: #3977b9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
}

.planner-checkbox:hover {
    border-color: #3977b9;
}

.planner-task-name {
    min-width: 0;
    flex: 1;
    height: 28px;
    padding: 3px 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #444;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.planner-task-name:hover,
.planner-task-name:focus {
    border-color: #c8c8c8;
    background: #fff;
}

.planner-task.completed .planner-task-name {
    color: #999;
    text-decoration: line-through;
}

.planner-task.completed .planner-checkbox {
    border-color: #3977b9;
    background: #3977b9;
    color: #fff;
}

.planner-add-task {
    width: calc(100% - 14px);
    margin: 0 7px 7px;
    padding: 8px 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #777;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.planner-add-task:hover {
    border-color: #d5d5d5;
    background: #f7f7f7;
    color: #3977b9;
}

.planner-add-category {
    width: 285px;
    min-width: 285px;
    min-height: 43px;
    padding: 11px;
    border: 1px dashed #c8c8c8;
    background: transparent;
    color: #777;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.planner-add-category:hover {
    border-color: #3977b9;
    background: #fff;
    color: #3977b9;
}

.planner-empty {
    width: 100%;
    padding: 55px 25px;
    border: 1px solid #d5d5d5;
    background: #fff;
    text-align: center;
}

.planner-empty strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
}

.planner-empty p {
    margin: 0 0 20px;
    color: #777;
    font-size: 13px;
}

@media (max-width: 700px) {
    .planner-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .planner-heading .button {
        width: 100%;
    }

    .planner-board {
        margin-right: -14px;
        padding-right: 14px;
    }

    .planner-category,
    .planner-add-category {
        width: 270px;
        min-width: 270px;
    }
}

.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-name-row h2 {
    margin: 0;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #aaa;
}

.profile-status.online {
    color: #4a8a52;
}

.profile-status.online .profile-status-dot {
    background: #4a8a52;
}

.profile-status.offline {
    color: #888;
}

.profile-status.offline .profile-status-dot {
    background: #aaa;
}

/* Planner Task Details */

.planner-task {
    cursor: pointer;
}

.planner-task-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.planner-task-due {
    display: block;
    margin-top: 3px;
    color: #3977b9;
    font-size: 11px;
}

.planner-task-description-indicator {
    display: block;
    margin-top: 2px;
    color: #888;
    font-size: 10px;
}

.planner-category-title:disabled {
    opacity: 1;
    cursor: default;
}

.planner-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.planner-modal.show {
    display: flex;
}

.planner-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #aaa;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.planner-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #3977b9;
    color: #fff;
}

.planner-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.planner-modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.planner-modal-content {
    padding: 18px;
}

.planner-modal-content label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.planner-modal-content input[type="text"],
.planner-modal-content input[type="date"],
.planner-modal-content textarea {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 15px;
    padding: 8px 9px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
}

.planner-modal-content textarea {
    min-height: 110px;
    resize: vertical;
}

.planner-modal-checkbox {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px !important;
    font-weight: 400 !important;
}

.planner-modal-checkbox input {
    margin: 0;
}

.planner-share-section {
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.planner-share-section h4 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #333;
}

#task-modal-members {
    margin-bottom: 12px;
}

.planner-no-members {
    color: #888;
    font-size: 12px;
}

.planner-member {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.planner-member img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border: 1px solid #bbb;
}

.planner-member span {
    flex: 1;
    font-size: 12px;
}

.planner-remove-member {
    border: 0;
    background: transparent;
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.planner-remove-member:hover {
    color: #b33;
}

.planner-share-add {
    display: flex;
    gap: 7px;
}

.planner-share-add input {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

.planner-share-add .button {
    flex-shrink: 0;
}

.planner-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}

@media (max-width: 600px) {
    .planner-modal {
        padding: 10px;
    }

    .planner-modal-box {
        max-height: calc(100vh - 20px);
    }

    .planner-share-add {
        flex-direction: column;
    }
}

#global-announcements {
    width: 100%;
}

.global-announcement {
    background: #e87522;
    color: white;
    padding: 16px 20px;
    border-bottom: 1px solid #c45e16;
}

.global-announcement-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.global-announcement-message {
    font-size: 14px;
    line-height: 1.5;
}
/* Announcements */

#global-announcements {
    width: 100%;
}

.global-announcement {
    background: #e87522;
    color: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid #c45e16;
}

.global-announcement-title {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;
}

.global-announcement-message {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.announcements-page {
    padding: 30px 0 55px;
}

.announcements-page-heading {
    padding-bottom: 25px;
    border-bottom: 1px solid #d5d5d5;
}

.announcements-page-heading h2 {
    margin: 0 0 5px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.announcements-page-heading p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.announcement-list {
    padding-top: 25px;
}

.announcement-list .global-announcement {
    margin-bottom: 10px;
    border: 1px solid #c45e16;
}

.announcement-empty {
    padding: 35px 20px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #777;
    font-size: 13px;
    text-align: center;
}

/* Announcement Management */

#announcement-management {
    display: none;
}

.announcement-admin-entry {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.announcement-admin-entry:last-child {
    border-bottom: 0;
}

.announcement-admin-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.announcement-admin-entry-title {
    font-size: 13px;
    font-weight: 700;
}

.announcement-admin-entry-status {
    color: #777;
    font-size: 11px;
}

.announcement-admin-entry-message {
    margin: 6px 0 10px;
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.announcement-admin-entry .button {
    padding: 6px 10px;
    font-size: 11px;
}

.announcement-retracted {
    opacity: 0.55;
}

.announcement-retracted .announcement-admin-entry-status {
    color: #999;
}

/* Announcement Modal */

.announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.announcement-modal.show {
    display: flex;
}

.announcement-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #aaa;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.announcement-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #3977b9;
    color: #fff;
}

.announcement-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.announcement-modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.announcement-modal-content {
    padding: 18px;
}

.announcement-modal-content label {
    display: block;
    margin: 0 0 6px;
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

.announcement-modal-content input,
.announcement-modal-content textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px 9px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.announcement-modal-content input {
    height: 38px;
}

.announcement-modal-content textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.announcement-modal-content input:focus,
.announcement-modal-content textarea:focus {
    border-color: #3977b9;
}

.announcement-modal-note {
    margin: -3px 0 5px;
    color: #888;
    font-size: 11px;
    line-height: 1.5;
}

.announcement-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}

@media (max-width: 600px) {
    .announcement-modal {
        padding: 10px;
    }

    .announcement-modal-box {
        max-height: calc(100vh - 20px);
    }

    .announcement-admin-entry-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .announcement-modal-footer {
        flex-direction: column-reverse;
    }

    .announcement-modal-footer .button {
        width: 100%;
    }
}

.global-announcement {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.global-announcement-content {
    min-width: 0;
    flex: 1;
}

.global-announcement-dismiss {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.global-announcement-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .global-announcement {
        flex-direction: column;
        gap: 10px;
    }

    .global-announcement-dismiss {
        align-self: flex-start;
    }
}

.global-announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.global-announcement .button {
    flex-shrink: 0;
}
