#underBar.eomaia-bottom-nav {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #dde3ea;
    box-shadow: 0 -3px 16px rgba(33, 37, 41, 0.08);
    z-index: 20;
}

#dialog {
    background: #f8fafc !important;
    overflow: hidden;
    z-index: 40;
}

#dialog > span {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dde3ea;
    box-sizing: border-box;
    color: #495057;
    display: inline-flex !important;
    justify-content: center;
    z-index: 2;
}

#dialog > span:hover,
#dialog > span:focus {
    color: #0d6efd;
}

#publicBar,
#titleBar,
#registerBar,
#commentBar,
#groupBar {
    background: #ffffff !important;
    border-bottom: 1px solid #dde3ea;
    box-sizing: border-box;
}

#commentArea,
#tagBox,
#goodBox,
#descriptionBox,
#uploadBox {
    background: #f8fafc !important;
    box-sizing: border-box;
}

#commentArea .container-fluid,
#tagBox .container-fluid,
#goodBox .container-fluid,
#descriptionBox .container-fluid,
#uploadBox .container-fluid {
    padding: 8px;
}

#commentArea2,
#tagBox2,
#goodBox2 {
    row-gap: 8px;
}

#underBar .eomaia-nav-item {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-top: 3px solid transparent;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    font-size: inherit !important;
    gap: 0;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    padding: 1px 2px 2px;
}

#underBar .eomaia-nav-item.is-active {
    border-top-color: #0d6efd;
    color: #0d6efd;
    font-weight: 700;
}

#underBar .eomaia-nav-icon {
    font-size: 18px;
    line-height: 1;
}

#underBar .eomaia-nav-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-height: 760px) {
    #underBar .eomaia-nav-icon {
        font-size: 21px;
    }

    #underBar .eomaia-nav-label {
        font-size: 10px;
    }
}

.eomaia-material-action {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(108, 117, 125, 0.22);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.12);
    color: #495057;
    display: flex;
    font-size: 21px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    z-index: 3;
}

.eomaia-material-action:hover,
.eomaia-material-action:focus {
    background: #ffffff;
    color: #0d6efd;
    outline: none;
}

.eomaia-notification-card {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.07);
    grid-column: 1 / -1;
    margin: 0;
    min-width: 0;
    padding: 8px;
}

.eomaia-notification-status {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 8px;
    min-height: 38px;
}

.eomaia-notification-text {
    color: #212529;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

button[data-type="work"] .eomaia-material-action,
button[data-type="image"] .eomaia-material-action {
    bottom: 8px;
    top: auto;
    transform: none;
}

#dataArea,
#workSet,
#imageSet,
#audioSet,
#fontSet,
#memberSet,
#personSet,
#followSet {
    box-sizing: border-box;
    gap: 8px;
    padding: 8px;
}

button[data-type="work"],
button[data-type="image"],
button[data-type="audio"],
button[data-type="font"] {
    background: #ffffff;
    border: 1px solid #dde3ea !important;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.07);
    color: #212529;
    max-width: 100%;
    min-height: 56px;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 100%;
}

button[data-type="work"]:focus,
button[data-type="image"]:focus,
button[data-type="audio"]:focus,
button[data-type="font"]:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
    outline: none;
}

button[data-type="work"].btn-primary,
button[data-type="image"].btn-primary,
button[data-type="audio"].btn-primary,
button[data-type="font"].btn-primary {
    background: #ffffff;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
    color: #212529;
}

button[data-type="work"],
button[data-type="image"] {
    aspect-ratio: 1 / 1;
    display: block;
    min-height: 0;
}

.eomaia-material-preview {
    background: #f8f9fa;
    display: block;
    height: 100%;
    width: 100% !important;
}

[id^="detail-"] {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

[data-material-grid="media"] {
    align-items: stretch;
    grid-auto-rows: calc((100vw - 24px) / 2) !important;
}

[data-material-grid="media"] button[data-type="work"],
[data-material-grid="media"] button[data-type="image"],
[data-material-grid="media"] [id^="detail-"] {
    height: 100% !important;
}

[data-material-grid="list"] {
    grid-auto-rows: auto !important;
}

button[data-type="user"],
button[data-type="dm"],
button[data-type="member"],
#userArea > a > button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde3ea !important;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.06);
    box-sizing: border-box;
    color: #212529;
    display: flex !important;
    gap: 8px;
    justify-content: space-between;
    min-height: 52px;
    min-width: 0;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

#userArea > a {
    min-width: 0;
    text-decoration: none;
}

button[data-type="user"].btn-primary,
button[data-type="dm"].btn-primary,
button[data-type="member"].btn-primary {
    background: #e8f1ff;
    border-color: #0d6efd !important;
    color: #0d6efd;
}

button[data-type="user"].btn-outline-secondary {
    background: #f8f9fa;
    color: #6c757d;
}

button[data-type="user"].btn-outline-danger {
    background: #fff5f5;
    color: #dc3545;
}

.eomaia-connection-main {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.eomaia-connection-icon,
.eomaia-user-card-icon {
    align-items: center;
    background: #edf7f2;
    border-radius: 8px;
    color: #198754;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 20px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.eomaia-connection-name,
.eomaia-user-card-name {
    display: block;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eomaia-connection-count,
.eomaia-connection-badge {
    align-items: center;
    background: #fff4d8;
    border-radius: 999px;
    color: #795200;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 24px;
    min-width: 24px;
    padding: 3px 7px;
}

.eomaia-connection-badge {
    font-size: 18px;
    line-height: 1;
}

.eomaia-material-footer {
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(33, 37, 41, 0.58));
    bottom: 0;
    display: flex;
    gap: 4px;
    justify-content: space-between;
    left: 0;
    padding: 32px 42px 8px 8px;
    position: absolute;
    right: 0;
}

.eomaia-material-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: #212529;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 2px;
    line-height: 1;
    max-width: 100%;
    min-width: 0;
    padding: 4px 6px;
}

.eomaia-material-pill-icon {
    font-size: 14px;
    line-height: 1;
}

button[data-type="audio"],
button[data-type="font"] {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 10px 42px 10px 10px;
}

.eomaia-material-type-icon {
    align-items: center;
    background: #eef4ff;
    border-radius: 8px;
    color: #0d6efd;
    display: flex;
    flex: 0 0 34px;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.eomaia-material-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.eomaia-material-title,
.eomaia-material-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eomaia-material-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.eomaia-material-meta {
    color: #6c757d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.eomaia-chat-bubble {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.08);
    box-sizing: border-box;
    margin: 4px 8px;
    max-width: calc(100% - 8px);
    min-width: 0;
    padding: 8px 10px;
    width: fit-content !important;
}

.eomaia-chat-self {
    background: #dbeafe;
    border-bottom-right-radius: 4px;
    justify-self: end;
}

.eomaia-chat-other {
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-bottom-left-radius: 4px;
    justify-self: start;
}

.eomaia-chat-author-link {
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
}

.eomaia-chat-author {
    border: 0;
    color: #495057;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
    text-align: left;
    width: 100%;
}

.eomaia-chat-author:hover,
.eomaia-chat-author:focus {
    background: transparent;
    color: #0d6efd;
}

.eomaia-chat-text {
    color: #212529;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: pre-wrap;
}

.eomaia-chat-system-text {
    color: #6c757d;
    font-size: 12px;
    font-weight: 700;
}

.eomaia-chat-time {
    color: #6c757d;
    font-size: 10px;
    line-height: 1.2;
    margin: 6px 0 0;
    text-align: right;
}

.eomaia-comment-col,
.eomaia-user-col {
    padding-left: 4px;
    padding-right: 4px;
}

.eomaia-comment-card {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.06);
    box-sizing: border-box;
    min-width: 0;
    padding: 10px;
    width: 100%;
}

.eomaia-comment-author-link {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.eomaia-comment-author {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.eomaia-comment-text {
    color: #212529;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.eomaia-comment-meta {
    align-items: center;
    color: #6c757d;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
    line-height: 1.2;
    margin: 10px 0 0;
}

.eomaia-comment-meta span:last-child {
    margin-left: auto;
}

.eomaia-comment-meta-icon {
    color: #dc3545;
    font-size: 16px;
    line-height: 1;
}

.eomaia-user-card {
    border-radius: 8px;
    justify-content: flex-start;
    min-height: 46px;
}

#goodBox1 {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    color: #495057;
    font-weight: 800;
    margin-bottom: 8px;
    padding: 8px 10px;
}

#goodBox1 p {
    margin: 0;
}

#tagBox2 a {
    text-decoration: none;
}

#tagBox2 button {
    background: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    min-height: 40px;
}

#descriptionBox2 {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    color: #212529;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 12px;
    white-space: pre-wrap;
}

#saveBox,
#chatsaveBox {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
}

#uploadBox2 .row {
    margin-bottom: 8px;
}

.eomaia-chat-bubble button[data-type="work"],
.eomaia-chat-bubble button[data-type="image"] {
    aspect-ratio: 1 / 1;
    margin-top: 2px;
    max-width: 220px;
}

.eomaia-chat-bubble button[data-type="audio"],
.eomaia-chat-bubble button[data-type="font"] {
    margin-top: 2px;
    max-width: 220px;
}

.eomaia-canvas-panel {
    background: #f8f9fa !important;
    border-color: #dde3ea;
    box-sizing: border-box;
    color: #212529;
    padding: 4px 6px;
}

.eomaia-canvas-timeline {
    border-bottom: 1px solid #dde3ea;
    border-top: 1px solid #dde3ea;
}

.eomaia-canvas-toolstrip {
    background: #ffffff !important;
    border-bottom: 1px solid #dde3ea;
}

.eomaia-canvas-properties {
    background: #f4f6f8 !important;
    border-top: 1px solid #dde3ea;
}

.eomaia-canvas-sheet {
    border-top: 1px solid #dde3ea;
    box-shadow: 0 -6px 24px rgba(33, 37, 41, 0.14);
}

.eomaia-canvas-layers {
    background: #ffffff !important;
    border: 1px solid #dde3ea;
    border-radius: 8px;
}

.eomaia-canvas-control,
#scheduleBar > span,
#menuBar > span,
#typeBar > span,
#elementBar > span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    box-sizing: border-box;
    color: #495057;
    display: inline-flex !important;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    margin: 2px;
    min-height: 40px;
    min-width: 38px;
    overflow: hidden;
    padding: 4px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eomaia-canvas-control:hover,
#scheduleBar > span:hover,
#menuBar > span:hover,
#typeBar > span:hover,
#elementBar > span:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

#play.eomaia-canvas-control,
#edit.eomaia-canvas-control {
    background: #ffffff !important;
    border-top: 1px solid #dde3ea;
}

#meter.eomaia-canvas-meter {
    background: #ffffff !important;
    box-sizing: border-box;
    padding: 0 10px;
}

#length.eomaia-canvas-control {
    font-size: 13px;
}

#imageCanvas {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-sizing: border-box;
}

#audioTitle,
#fontTitle {
    align-items: center;
    color: #495057;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#fontText {
    font-size: 13px;
    min-height: 32px;
}

#editBar input[type="range"] {
    background: transparent;
    margin: 6px 0;
}

#editBar input[type="color"] {
    height: 42px;
    margin: 8px auto;
    max-width: 160px;
}
