:root {
    --eomaia-app-bar-height: 56px;
    --eomaia-bottom-offset-px: var(--eomaia-app-bar-height);
    --eomaia-bottom-offset: calc(var(--eomaia-bottom-offset-px) + env(safe-area-inset-bottom, 0px));
    --eomaia-canvas-stage-height: 60vh;
    --eomaia-grid-gap: 8px;
    --eomaia-grid-min-media: 160px;
    --eomaia-grid-min-compact: 150px;
    --eomaia-grid-min-list: 180px;
    --eomaia-bg: #eef3f7;
    --eomaia-bg-grid: rgba(5, 18, 34, 0.05);
    --eomaia-surface: #ffffff;
    --eomaia-surface-soft: #f8fafc;
    --eomaia-surface-glass: rgba(255, 255, 255, 0.88);
    --eomaia-surface-strong: rgba(255, 255, 255, 0.96);
    --eomaia-line: rgba(20, 184, 166, 0.28);
    --eomaia-line-soft: rgba(100, 116, 139, 0.18);
    --eomaia-ink: #111827;
    --eomaia-ink-soft: #343a40;
    --eomaia-muted: #64748b;
    --eomaia-accent: #00a7b7;
    --eomaia-accent-strong: #007f8f;
    --eomaia-accent-soft: rgba(0, 167, 183, 0.11);
    --eomaia-violet: #7c3aed;
    --eomaia-success: #16a34a;
    --eomaia-warning: #d97706;
    --eomaia-danger: #dc2626;
    --eomaia-focus-ring: rgba(0, 167, 183, 0.18);
    --eomaia-shadow-sm: 0 1px 8px rgba(15, 23, 42, 0.06);
    --eomaia-shadow-md: 0 14px 38px rgba(15, 23, 42, 0.12);
    --eomaia-glow: 0 0 0 1px rgba(20, 184, 166, 0.16), 0 10px 32px rgba(0, 167, 183, 0.14);
    --eomaia-future-bg: var(--eomaia-bg);
    --eomaia-future-bg-grid: var(--eomaia-bg-grid);
    --eomaia-future-panel: var(--eomaia-surface-glass);
    --eomaia-future-panel-strong: var(--eomaia-surface-strong);
    --eomaia-future-line: var(--eomaia-line);
    --eomaia-future-line-soft: var(--eomaia-line-soft);
    --eomaia-future-ink: var(--eomaia-ink);
    --eomaia-future-muted: var(--eomaia-muted);
    --eomaia-future-cyan: var(--eomaia-accent);
    --eomaia-future-violet: var(--eomaia-violet);
    --eomaia-future-green: var(--eomaia-success);
    --eomaia-future-amber: var(--eomaia-warning);
    --eomaia-future-shadow: var(--eomaia-shadow-md);
    --eomaia-future-glow: var(--eomaia-glow);
    --eomaia-z-canvas-stage: 8;
    --eomaia-z-canvas-hitbox: 9;
    --eomaia-z-bottom-nav: 20;
    --eomaia-z-controls: 22;
    --eomaia-z-title: 23;
    --eomaia-z-inline: 24;
    --eomaia-z-material: 25;
    --eomaia-z-fab: 30;
    --eomaia-z-overlay: 38;
    --eomaia-z-overlay-control: 39;
    --eomaia-z-dialog: 40;
    --eomaia-z-toast: 120;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    user-select: text;
    -webkit-user-select: text;
    -webkit-text-size-adjust: 100%;
}

html,
main {
    max-width: 100%;
}

html {
    overflow-x: hidden;
}

main {
    overflow: visible;
}

button,
canvas,
video,
.material-icons,
.material-icons-outlined,
.eomaia-icon-bar,
.eomaia-bottom-nav,
.eomaia-inline-bar,
.eomaia-canvas-control,
.eomaia-canvas-hitbox {
    user-select: none;
    -webkit-user-select: none;
}

.material-icons[data-icon-symbol],
.material-icons-outlined[data-icon-symbol],
.material-icons[data-icon-rendered="svg"],
.material-icons-outlined[data-icon-rendered="svg"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0 !important;
    font-weight: 900;
    letter-spacing: 0;
}

.material-icons[data-icon-rendered="svg"]::before,
.material-icons-outlined[data-icon-rendered="svg"]::before {
    content: none;
}

.material-icons[data-icon-symbol]::before,
.material-icons-outlined[data-icon-symbol]::before {
    align-items: center;
    content: attr(data-icon-symbol);
    display: inline-flex;
    font-size: var(--eomaia-icon-fallback-size, 21px);
    height: 100%;
    justify-content: center;
    line-height: 1;
    min-width: max-content;
    text-indent: 0;
}

.eomaia-local-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: var(--eomaia-icon-fallback-size, 22px);
    overflow: visible;
    pointer-events: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.05;
    fill: none;
    vertical-align: middle;
    width: var(--eomaia-icon-fallback-size, 22px);
}

.eomaia-bar-item[data-icon-symbol],
.eomaia-nav-icon[data-icon-symbol],
.eomaia-bar-item[data-icon-rendered="svg"],
.eomaia-nav-icon[data-icon-rendered="svg"] {
    --eomaia-icon-fallback-size: clamp(18px, calc(var(--eomaia-app-bar-height) * 0.28), 23px);
}

.eomaia-material-pill-icon[data-icon-symbol],
.eomaia-material-type-icon[data-icon-symbol],
.eomaia-connection-icon[data-icon-symbol],
.eomaia-user-card-icon[data-icon-symbol],
.eomaia-material-pill-icon[data-icon-rendered="svg"],
.eomaia-material-type-icon[data-icon-rendered="svg"],
.eomaia-connection-icon[data-icon-rendered="svg"],
.eomaia-user-card-icon[data-icon-rendered="svg"] {
    --eomaia-icon-fallback-size: 15px;
}

.btn-outline-primary {
    --bs-btn-hover-bg: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-hover-color: var(--eomaia-accent);
    --bs-btn-active-color: var(--eomaia-accent);
    --bs-btn-hover-border-color: var(--eomaia-accent);
    --bs-btn-active-border-color: var(--eomaia-accent);
}

.btn-outline-secondary {
    --bs-btn-hover-bg: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-hover-color: var(--eomaia-muted);
    --bs-btn-active-color: var(--eomaia-muted);
    --bs-btn-hover-border-color: var(--eomaia-muted);
    --bs-btn-active-border-color: var(--eomaia-muted);
}

.eomaia-hidden {
    display: none;
}

.is-hidden {
    display: none !important;
}

.is-disabled {
    color: var(--eomaia-muted) !important;
    opacity: 0.55;
    pointer-events: none;
}

.is-muted {
    color: var(--eomaia-muted) !important;
}

.is-active {
    color: var(--eomaia-accent);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--eomaia-focus-ring);
    outline-offset: 2px;
}

.eomaia-contents {
    display: contents;
}

.eomaia-frame-box {
    box-sizing: border-box;
}

.eomaia-icon-control {
    text-align: center;
}

.eomaia-grid-2 {
    align-content: start;
    align-items: start;
    display: grid;
    grid-auto-rows: max-content;
    gap: var(--eomaia-grid-gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eomaia-grid-min-list)), 1fr));
    min-width: 0;
}

.eomaia-scroll-y {
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.eomaia-slide-area {
    box-sizing: border-box;
    isolation: isolate;
    overflow-y: auto;
    padding: var(--eomaia-grid-gap);
    scrollbar-gutter: stable;
    transition: top 0.5s ease-in-out;
    z-index: var(--eomaia-z-material);
    -webkit-overflow-scrolling: touch;
}

.eomaia-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.eomaia-full-width {
    width: 100%;
}

.eomaia-fill-height {
    height: 100%;
}

.eomaia-fit-content-height {
    height: fit-content;
}

.eomaia-wrap-button {
    height: auto;
    white-space: normal;
    word-break: break-word;
}

.eomaia-text-center {
    text-align: center;
}

.eomaia-bg-white {
    background-color: #ffffff;
}

.eomaia-relative {
    position: relative;
}

.eomaia-flex-static {
    flex: 0 0 auto;
}

.eomaia-detail-open {
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}

.eomaia-dialog-shell {
    background-color: #ffffff;
    box-sizing: border-box;
    height: 100dvh;
    left: 0;
    max-inline-size: 100%;
    max-width: 100%;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 100dvh;
    transition: top 0.5s ease-in-out;
    width: 100%;
    z-index: var(--eomaia-z-dialog);
}

.eomaia-dialog-shell .container-fluid {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 8px;
    padding-right: 8px;
}

.eomaia-dialog-shell .row {
    --bs-gutter-x: 0.75rem;
    margin-left: 0;
    margin-right: 0;
}

.eomaia-dialog-shell [class*="col-"] {
    min-width: 0;
}

.eomaia-toast-host {
    align-items: center;
    bottom: calc(var(--eomaia-bottom-offset) + 8px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: var(--eomaia-z-toast);
}

.eomaia-toast {
    background: rgba(33, 37, 41, 0.94);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(33, 37, 41, 0.2);
    box-sizing: border-box;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    max-width: min(480px, calc(100vw - 24px));
    opacity: 0;
    overflow-wrap: anywhere;
    padding: 10px 14px;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.eomaia-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eomaia-confirm-host {
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.28);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.18s ease;
    z-index: calc(var(--eomaia-z-toast) + 1);
}

.eomaia-confirm-host.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.eomaia-confirm-dialog {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
    max-width: 440px;
    padding: 14px;
    transform: translateY(12px);
    transition: transform 0.18s ease;
    width: min(100%, 440px);
}

.eomaia-confirm-host.is-visible .eomaia-confirm-dialog {
    transform: translateY(0);
}

.eomaia-confirm-message {
    color: var(--eomaia-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.eomaia-confirm-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.eomaia-confirm-button {
    border-radius: 8px;
    font-weight: 800;
    min-height: 44px;
}

.eomaia-scroll-y[data-load-state="loading"]::after,
.eomaia-scroll-y[data-load-state="error"]::after,
.eomaia-scroll-y[data-empty="true"]::before {
    grid-column: 1 / -1;
    margin: 14px auto;
    pointer-events: none;
}

.eomaia-scroll-y[data-load-state="loading"]::after {
    animation: eomaia-spin 0.72s linear infinite;
    border: 3px solid #dbe3ec;
    border-radius: 999px;
    border-top-color: var(--eomaia-accent);
    box-sizing: border-box;
    content: "";
    display: block;
    height: 28px;
    width: 28px;
}

.eomaia-scroll-y[data-load-state="error"]::after,
.eomaia-scroll-y[data-empty="true"]::before {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #64748b;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.4;
    min-height: 72px;
    padding: 14px;
    text-align: center;
    width: min(100% - 16px, 360px);
}

.eomaia-scroll-y[data-load-state="error"]::after {
    content: attr(data-load-state-label);
}

.eomaia-scroll-y[data-empty="true"]::before {
    content: attr(data-empty-label);
}

@keyframes eomaia-spin {
    to {
        transform: rotate(360deg);
    }
}

.eomaia-upload-description-row {
    height: 50%;
}

.eomaia-detail-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 10px;
}

.eomaia-detail-layout {
    align-items: start;
    margin: 0 auto;
    max-width: 1120px;
    row-gap: 10px;
}

.eomaia-detail-column {
    box-sizing: border-box;
    padding: 0 5px;
}

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

.eomaia-detail-author {
    border-radius: 8px;
    color: var(--eomaia-ink);
    font-weight: 800;
    min-height: 44px;
}

.eomaia-detail-material {
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 8px;
}

.eomaia-detail-material > button[data-type="work"],
.eomaia-detail-material > button[data-type="image"] {
    aspect-ratio: 1 / 1;
}

.eomaia-detail-material > button[data-type="audio"],
.eomaia-detail-material > button[data-type="font"] {
    min-height: 72px;
}

.eomaia-detail-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eomaia-detail-toggle {
    border-radius: 8px;
    color: var(--eomaia-ink-soft);
    font-weight: 800;
    min-height: 44px;
}

.eomaia-detail-panel {
    border-radius: 8px;
    padding: 10px;
}

.eomaia-detail-panel .container-fluid {
    padding: 0;
}

.eomaia-detail-tag-row {
    row-gap: 8px;
}

.eomaia-detail-tag-col {
    padding-left: 4px;
    padding-right: 4px;
}

.eomaia-detail-tag {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
}

.eomaia-detail-description {
    color: var(--eomaia-ink);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    overflow-wrap: anywhere;
}

.eomaia-form-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 12px 0 28px;
}

.eomaia-form-shell {
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 560px;
    padding: 12px;
}

.eomaia-form-grid {
    row-gap: 8px;
}

.eomaia-form-field {
    min-width: 0;
}

.eomaia-block-link {
    display: block;
    text-decoration: none;
}

.eomaia-form-tab,
.eomaia-form-submit,
.eomaia-form-control {
    border-radius: 8px;
    min-height: 44px;
}

.eomaia-form-tab,
.eomaia-form-submit {
    font-weight: 800;
}

.eomaia-form-textarea {
    min-height: 132px;
    resize: vertical;
}

.eomaia-form-panel,
.eomaia-form-check,
.eomaia-form-switch {
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px;
}

.eomaia-form-panel {
    display: grid;
    gap: 8px;
}

.eomaia-form-panel .form-check {
    margin: 0;
}

.eomaia-form-check,
.eomaia-form-switch {
    align-items: center;
    display: flex;
    gap: 7px;
    min-height: 42px;
}

.eomaia-form-check .form-check-input,
.eomaia-form-switch .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.eomaia-form-check .form-check-label,
.eomaia-form-switch .form-check-label {
    line-height: 1.45;
    min-width: 0;
}

.eomaia-form-errors {
    color: var(--eomaia-danger);
    font-size: 13px;
    line-height: 1.5;
}

.eomaia-form-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.eomaia-form-message {
    color: var(--eomaia-ink-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.eomaia-form-message p {
    margin: 0;
}

.eomaia-form-back {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    color: var(--eomaia-ink-soft);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    text-decoration: none;
    width: 42px;
}

.eomaia-form-back:hover,
.eomaia-form-back:focus {
    border-color: var(--eomaia-accent);
    color: var(--eomaia-accent);
}

.eomaia-form-back .material-icons-outlined {
    font-size: 26px;
}

.eomaia-form-page .form-label {
    color: var(--eomaia-ink-soft);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .eomaia-detail-page {
        padding: 16px;
    }

    .eomaia-detail-side {
        position: sticky;
        top: 12px;
    }

    .eomaia-form-page {
        padding-top: 24px;
    }

    .eomaia-form-shell {
        padding: 16px;
    }
}

#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);
    box-sizing: border-box;
    max-height: var(--eomaia-app-bar-height);
    min-height: var(--eomaia-app-bar-height);
    overflow: hidden;
    z-index: var(--eomaia-z-bottom-nav);
}

#dataArea {
    box-sizing: border-box;
    padding: var(--eomaia-grid-gap);
}

.eomaia-inline-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.98) !important;
    box-sizing: border-box;
    display: flex;
    gap: 6px;
    min-width: 0;
    padding: 4px 6px;
    z-index: var(--eomaia-z-inline);
}

.eomaia-flex-bar {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    overflow: hidden;
}

.eomaia-hidden.eomaia-flex-bar {
    display: none;
}

#secondBar.eomaia-inline-bar,
#titleBar.eomaia-inline-bar,
#registerBar.eomaia-inline-bar {
    border-bottom: 1px solid #dde3ea;
    box-shadow: 0 2px 10px rgba(33, 37, 41, 0.06);
}

#underBar.eomaia-inline-bar,
#commentBar.eomaia-inline-bar,
#groupBar.eomaia-inline-bar {
    border-top: 1px solid #dde3ea;
    box-shadow: 0 -2px 10px rgba(33, 37, 41, 0.06);
}

#chatTitle {
    align-items: center;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 0;
    border-bottom: 1px solid #dde3ea;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 18px rgba(33, 37, 41, 0.08);
    color: var(--eomaia-ink);
    gap: 8px;
    font-weight: 800;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: var(--eomaia-z-title);
}

#chatTitle::before {
    align-items: center;
    background: #eef4ff;
    border-radius: 999px;
    color: var(--eomaia-accent);
    content: "CH";
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 12px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

#chatTitle::after {
    color: var(--eomaia-success);
    content: "";
    background: var(--eomaia-success);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(33, 37, 41, 0.16);
    flex: 0 0 10px;
    height: 10px;
    width: 10px;
}

#settingDropdown {
    overflow: visible !important;
    z-index: var(--eomaia-z-controls);
}

#settingDropdown .dropdown-menu {
    max-width: calc(100vw - 16px);
    overflow-wrap: anywhere;
    z-index: var(--eomaia-z-dialog);
}

.eomaia-inline-input {
    border-color: #d7dee6 !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    flex: 1 1 0;
    font-size: 14px;
    height: 100% !important;
    min-height: 36px;
    min-width: 0;
    position: static !important;
    width: auto !important;
}

.eomaia-inline-input:focus {
    border-color: var(--eomaia-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 167, 183, 0.16) !important;
}

.eomaia-inline-action {
    align-items: center;
    border-radius: 8px !important;
    display: inline-flex;
    flex: 0 0 clamp(44px, 20%, 72px);
    height: 100% !important;
    justify-content: center;
    min-height: 36px;
    min-width: 44px;
    position: static !important;
    width: auto !important;
}

.eomaia-inline-action .material-icons {
    font-size: 22px;
    line-height: 1;
}

#registerBar.eomaia-inline-bar-split > .eomaia-inline-input {
    flex-basis: 0;
}

#registerBar.eomaia-inline-bar-split > .eomaia-inline-input:nth-child(2) {
    flex-grow: 1.2;
}

.eomaia-icon-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #dde3ea;
    box-shadow: 0 2px 10px rgba(33, 37, 41, 0.06);
    box-sizing: border-box;
    display: flex;
    gap: 2px;
    min-width: 0;
    padding: 4px;
    z-index: var(--eomaia-z-controls);
}

#materialBar.eomaia-icon-bar {
    border-bottom: 0;
    border-top: 1px solid #dde3ea;
    box-shadow: 0 -2px 10px rgba(33, 37, 41, 0.06);
    z-index: var(--eomaia-z-material);
}

#qrBar.eomaia-icon-bar {
    z-index: var(--eomaia-z-overlay-control);
}

.eomaia-bar-item,
.eomaia-icon-bar > span {
    align-items: center;
    border-radius: 8px;
    color: var(--eomaia-ink-soft);
    flex: 1 1 0;
    display: inline-flex !important;
    font-size: clamp(22px, calc(var(--eomaia-app-bar-height) * 0.42), 30px) !important;
    height: 100%;
    justify-content: center;
    line-height: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: static !important;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    width: auto !important;
}

.eomaia-icon-bar > span:hover,
.eomaia-icon-bar > span:focus {
    background: #eef4ff;
    color: var(--eomaia-accent);
    outline: none;
}

.eomaia-icon-bar > span.material-icons,
.eomaia-icon-bar > span.is-active {
    background: #eef4ff;
    color: var(--eomaia-accent);
}

#profileBox {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%) !important;
    border-bottom: 1px solid #dde3ea;
    box-shadow: 0 6px 22px rgba(33, 37, 41, 0.08);
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    z-index: var(--eomaia-z-controls);
}

#profileBox.eomaia-hidden,
#profileBox.is-hidden {
    display: none !important;
}

#profileBox .container-fluid {
    margin: auto;
    max-width: 840px;
    padding: 10px 12px;
}

#profileBox .row {
    align-content: center;
    height: 100%;
    row-gap: 8px;
}

#profileBox button {
    background: #ffffff;
    border: 1px solid #dde3ea !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(33, 37, 41, 0.05);
    color: var(--eomaia-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#profileBox #username {
    background: #ffffff !important;
    border-color: #cfd9e5 !important;
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.08) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    min-height: 46px !important;
}

#profileBox #username .material-icons-outlined {
    color: var(--eomaia-muted);
    font-size: 16px;
    margin-left: 4px;
    vertical-align: text-bottom;
}

.eomaia-profile-stat {
    background: #f8fafc !important;
    color: var(--eomaia-ink-soft) !important;
    min-height: 42px !important;
}

.eomaia-profile-intro {
    color: var(--eomaia-ink-soft) !important;
    overflow-y: auto !important;
    text-align: left !important;
}

#camera,
#qrcode,
#setting,
#follow,
#message {
    align-items: center;
    border-color: #dde3ea !important;
    border-radius: 0 !important;
    border-top-width: 0 !important;
    box-sizing: border-box;
    color: var(--eomaia-ink-soft);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: var(--eomaia-app-bar-height);
    z-index: var(--eomaia-z-bottom-nav);
}

#camera,
#follow {
    border-bottom-left-radius: 12px !important;
}

#setting,
#message {
    border-bottom-right-radius: 12px !important;
}

#setting.dropdown-toggle::after {
    display: none;
}

#settingDropdown {
    box-sizing: border-box;
    z-index: var(--eomaia-z-dialog);
}

#settingDropdown #setting {
    height: 100% !important;
    position: static !important;
    width: 100% !important;
}

#camera:hover,
#camera:focus,
#qrcode:hover,
#qrcode:focus,
#setting:hover,
#setting:focus,
#follow:hover,
#follow:focus,
#message:hover,
#message:focus {
    background: #eef4ff !important;
    color: var(--eomaia-accent);
}

.dropdown-center .dropdown-menu {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.12);
    max-height: calc(100dvh - 16px);
    max-width: min(280px, calc(100vw - 16px));
    overflow-y: auto;
    padding: 6px;
    z-index: var(--eomaia-z-toast);
}

.dropdown-center .dropdown-item {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
}

#add {
    align-items: center;
    background: var(--eomaia-accent);
    border: 1px solid rgba(0, 167, 183, 0.18);
    border-radius: 999px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 167, 183, 0.28);
    color: #ffffff;
    display: inline-flex !important;
    font-size: 30px !important;
    height: 56px !important;
    justify-content: center;
    left: auto !important;
    line-height: 1;
    position: fixed;
    right: 16px;
    top: auto !important;
    width: 56px !important;
    z-index: var(--eomaia-z-fab);
    bottom: calc(var(--eomaia-bottom-offset) + 16px);
}

#add:hover,
#add:focus {
    background: var(--eomaia-accent-strong);
    color: #ffffff;
    outline: none;
}

#dialog {
    background: #f8fafc !important;
    left: 0 !important;
    max-inline-size: 100%;
    max-width: 100%;
    overscroll-behavior: contain;
    overflow: hidden;
    right: 0;
    z-index: var(--eomaia-z-dialog);
}

#dialog > span {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dde3ea;
    box-sizing: border-box;
    color: var(--eomaia-ink-soft);
    display: inline-flex !important;
    font-size: 28px;
    justify-content: center;
    z-index: 2;
}

#dialog.eomaia-canvas-sheet > span {
    background: #ffffff;
    border-bottom-color: #e7edf3;
    font-size: 25px;
}

#dialog > span.eomaia-hidden,
#dialog > span.is-hidden {
    display: none !important;
}

#dialog > span:hover,
#dialog > span:focus {
    color: var(--eomaia-accent);
}

#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: var(--eomaia-muted);
    display: flex;
    flex-direction: column;
    font-size: inherit !important;
    gap: 0;
    justify-content: center;
    line-height: 1;
    min-height: calc(var(--eomaia-app-bar-height) - 8px);
    min-width: 0;
    padding: 3px 2px 4px;
}

#underBar .eomaia-nav-item.is-active {
    border-top-color: var(--eomaia-accent);
    color: var(--eomaia-accent);
    font-weight: 700;
}

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

#underBar .eomaia-nav-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    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: 22px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.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: var(--eomaia-ink-soft);
    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: var(--eomaia-accent);
    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: var(--eomaia-ink);
    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: var(--eomaia-grid-gap);
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 8px;
    width: 100%;
}

#workArea,
#imageArea,
#audioArea,
#fontArea,
#memberArea,
#personArea,
#followArea {
    background: #f8fafc;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

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: var(--eomaia-ink);
    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(0, 167, 183, 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: var(--eomaia-accent) !important;
    box-shadow: 0 0 0 2px rgba(0, 167, 183, 0.2);
    color: var(--eomaia-ink);
}

button[data-type="work"],
button[data-type="image"] {
    aspect-ratio: 1 / 1;
    display: block;
    flex: 0 0 auto;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0;
    position: relative;
    width: 100%;
}

button[data-type="work"]::before,
button[data-type="image"]::before {
    content: "";
    display: block;
    padding-top: 0;
}

.eomaia-material-preview {
    background: #f8f9fa;
    display: block;
    height: 100% !important;
    inset: 0;
    pointer-events: none;
    position: absolute;
    width: 100% !important;
}

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

[data-material-grid="media"] {
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eomaia-grid-min-media)), 1fr));
}

[data-material-grid="media"] button[data-type="work"],
[data-material-grid="media"] button[data-type="image"] {
    align-self: start;
}

[data-material-grid="media"] [id^="detail-"] {
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    position: relative;
}

[data-material-grid="media"] [id^="detail-"]::before {
    content: "";
    display: block;
    padding-top: 0;
}

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

[data-material-grid="list"] {
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eomaia-grid-min-list)), 1fr));
}

[data-material-grid="compact"] {
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eomaia-grid-min-compact)), 1fr));
}

[data-material-grid="list"] button[data-type="audio"],
[data-material-grid="list"] button[data-type="font"],
[data-material-grid="compact"] button[data-type="audio"],
[data-material-grid="compact"] button[data-type="font"] {
    min-height: 66px;
}

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: var(--eomaia-ink);
    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: var(--eomaia-accent) !important;
    color: var(--eomaia-accent);
}

button[data-type="user"].btn-outline-secondary {
    background: #f8f9fa;
    color: var(--eomaia-muted);
}

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

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

.eomaia-connection-icon,
.eomaia-user-card-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 20px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.eomaia-connection-relation {
    align-items: center;
    background: #fff7e6;
    border: 1px solid #ffe0a6;
    border-radius: 999px;
    color: #9a6700;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.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;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    left: 0;
    position: absolute;
    right: 0;
}

.eomaia-material-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: var(--eomaia-ink);
    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;
}

.eomaia-material-type-icon {
    align-items: center;
    display: flex;
    flex: 0 0 34px;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.eomaia-material-has-action {
    padding-right: 2.25rem !important;
}

.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: var(--eomaia-muted);
    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-thread {
    align-content: end;
    align-items: end;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr !important;
    padding-bottom: calc(var(--eomaia-grid-gap) + 2px) !important;
}

.eomaia-chat-thread .eomaia-chat-bubble {
    max-width: min(78%, 560px);
}

.eomaia-chat-material-bubble {
    max-width: min(78%, 280px) !important;
    width: min(78vw, 280px) !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: var(--eomaia-ink-soft);
    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: var(--eomaia-accent);
}

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

.eomaia-chat-system-text {
    color: var(--eomaia-muted);
    font-size: 12px;
    font-weight: 700;
}

.eomaia-chat-time {
    color: var(--eomaia-muted);
    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: var(--eomaia-ink);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.eomaia-comment-meta {
    align-items: center;
    color: var(--eomaia-muted);
    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: var(--eomaia-danger);
    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: var(--eomaia-ink-soft);
    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: var(--eomaia-ink);
    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;
}

.eomaia-chat-choice-bar {
    border-top: 1px solid #dde3ea;
}

.eomaia-chat-choice-bar > .eomaia-bar-item {
    flex: 0 0 48px;
}

.eomaia-chat-choice-save {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0 !important;
    min-width: 0;
    overflow: hidden;
    padding: 6px 8px !important;
    position: static !important;
    width: auto !important;
}

#saveBox .form-check-input,
#chatsaveBox .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

#saveBox .form-check-label,
#chatsaveBox .form-check-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    min-width: 0;
}

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

#descriptionInput,
#uploadBox2 input[name="tag"] {
    border-color: #d7dee6;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

#descriptionInput {
    line-height: 1.55;
    min-height: 180px;
    resize: vertical;
}

#descriptionInput:focus,
#uploadBox2 input[name="tag"]:focus {
    border-color: var(--eomaia-accent);
    box-shadow: 0 0 0 3px rgba(0, 167, 183, 0.16);
}

#uploadBox2 input[name="tag"] {
    min-height: 38px;
}

#uploadBox2 [name="tagList"] {
    align-items: center;
}

#uploadBox2 [name="tagList"] > div {
    min-width: 0;
}

#uploadBox2 [name="tagList"] .material-icons-outlined {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--eomaia-ink-soft);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 100%;
}

#uploadBox2 [name="tagList"] .material-icons-outlined:hover,
#uploadBox2 [name="tagList"] .material-icons-outlined:focus {
    background: #eef4ff;
    color: var(--eomaia-accent);
}

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

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

.eomaia-preview-overlay {
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(33, 37, 41, 0.2);
    box-sizing: border-box;
    position: fixed !important;
    touch-action: none;
    z-index: var(--eomaia-z-overlay);
}

.eomaia-canvas-overlay {
    background: #ffffff;
    border: 1px solid #d7dee6;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.14);
    box-sizing: border-box;
    pointer-events: none;
    position: fixed;
    z-index: var(--eomaia-z-canvas-stage);
}

.eomaia-canvas-hitbox {
    position: fixed;
    touch-action: none;
    z-index: var(--eomaia-z-canvas-hitbox);
}

.eomaia-canvas-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #dde3ea;
    box-sizing: border-box;
    color: var(--eomaia-ink);
    overflow: hidden;
    padding: 5px 8px;
    z-index: var(--eomaia-z-controls);
}

.eomaia-canvas-timeline {
    background: #f8fafc !important;
    border-bottom: 1px solid #dde3ea;
    border-top: 1px solid #dde3ea;
    box-shadow: 0 3px 14px rgba(33, 37, 41, 0.06);
}

.eomaia-canvas-toolstrip {
    background: #ffffff !important;
    border-bottom: 1px solid #dde3ea;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.05);
}

.eomaia-canvas-properties {
    background: #f6f8fb !important;
    border-top: 1px solid #dde3ea;
    align-items: center;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.eomaia-canvas-crop-editor {
    align-content: start;
    grid-template-columns: 1fr !important;
}

.eomaia-canvas-sheet {
    background: #ffffff !important;
    border-top: 1px solid #dde3ea;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(33, 37, 41, 0.16);
    overflow: hidden;
}

.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: var(--eomaia-ink-soft);
    display: inline-flex !important;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    margin: 2px;
    min-height: 42px;
    min-width: 38px;
    overflow: hidden;
    padding: 5px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#scheduleBar > span,
#menuBar > span,
#typeBar > span,
#elementBar > span {
    flex: 0 0 clamp(46px, 17vw, 104px);
    height: calc(100% - 4px);
    position: static !important;
}

.eomaia-canvas-control:focus,
#scheduleBar > span:focus,
#menuBar > span:focus,
#typeBar > span:focus,
#elementBar > span:focus {
    border-color: var(--eomaia-accent);
    box-shadow: 0 0 0 3px rgba(0, 167, 183, 0.16);
    outline: none;
}

.eomaia-canvas-control.is-active,
#scheduleBar > span.is-active,
#menuBar > span.is-active,
#typeBar > span.is-active,
#elementBar > span.is-active {
    background: #eef4ff;
    border-color: var(--eomaia-accent);
    box-shadow: 0 0 0 2px rgba(0, 167, 183, 0.14);
    color: var(--eomaia-accent);
}

.eomaia-canvas-control:hover,
#scheduleBar > span:hover,
#menuBar > span:hover,
#typeBar > span:hover,
#elementBar > span:hover {
    border-color: var(--eomaia-accent);
    color: var(--eomaia-accent);
}

#play.eomaia-canvas-control,
#edit.eomaia-canvas-control {
    background: #ffffff !important;
    border-top: 1px solid #dde3ea;
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(33, 37, 41, 0.08);
    font-size: 26px;
    margin: 0;
    z-index: var(--eomaia-z-inline);
}

#play.eomaia-canvas-control {
    border-top-left-radius: 12px;
}

#edit.eomaia-canvas-control {
    border-top-right-radius: 12px;
}

#meter.eomaia-canvas-meter {
    background: #ffffff !important;
    box-sizing: border-box;
    height: auto;
    padding: 0 10px;
    z-index: var(--eomaia-z-inline);
}

#meter.eomaia-canvas-meter::-webkit-slider-thumb {
    border: 2px solid #ffffff;
    box-shadow: 0 1px 6px rgba(33, 37, 41, 0.25);
    height: 20px;
    width: 20px;
}

#meter.eomaia-canvas-meter::-moz-range-thumb {
    border: 2px solid #ffffff;
    box-shadow: 0 1px 6px rgba(33, 37, 41, 0.25);
    height: 20px;
    width: 20px;
}

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

.eomaia-canvas-preview-thumb {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
}

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

#fontText {
    border-color: #d7dee6;
    border-radius: 8px;
    font-size: 13px;
    min-height: 32px;
}

#fontText:focus {
    border-color: var(--eomaia-accent);
    box-shadow: 0 0 0 3px rgba(0, 167, 183, 0.16);
}

.eomaia-canvas-range-field {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(33, 37, 41, 0.05);
    box-sizing: border-box;
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr) 52px;
    justify-self: center;
    max-width: 760px;
    min-height: 50px;
    padding: 8px 10px;
    touch-action: pan-y;
    width: 100%;
}

.eomaia-canvas-crop-editor .eomaia-canvas-range-field {
    min-height: 54px;
}

.eomaia-canvas-range-icon {
    align-items: center;
    background: #eef4ff;
    border-radius: 8px;
    color: var(--eomaia-accent);
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.eomaia-canvas-range-value {
    background: #f8fafc;
    border: 1px solid #e3e9f0;
    border-radius: 999px;
    color: var(--eomaia-ink-soft);
    font-size: 12px;
    font-weight: 800;
    justify-self: end;
    line-height: 1;
    min-width: 48px;
    padding: 7px 8px;
    text-align: center;
}

#editBar input[type="range"] {
    background: transparent;
    box-sizing: border-box;
    grid-column: auto;
    margin: 0;
    min-height: 34px;
    min-width: 0;
    padding: 0;
    touch-action: pan-y;
    width: 100%;
}

#editBar input[type="range"].eomaia-canvas-range,
#meter.eomaia-canvas-meter {
    accent-color: var(--eomaia-accent);
    appearance: none;
    -webkit-appearance: none;
}

#editBar input[type="range"].eomaia-canvas-range::-webkit-slider-runnable-track,
#meter.eomaia-canvas-meter::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #d8e8ff, #eef4ff);
    border: 1px solid #c8dcf8;
    border-radius: 999px;
    height: 12px;
}

#editBar input[type="range"].eomaia-canvas-range::-moz-range-track,
#meter.eomaia-canvas-meter::-moz-range-track {
    background: linear-gradient(90deg, #d8e8ff, #eef4ff);
    border: 1px solid #c8dcf8;
    border-radius: 999px;
    height: 12px;
}

#editBar input[type="range"].eomaia-canvas-range::-webkit-slider-thumb,
#meter.eomaia-canvas-meter::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: var(--eomaia-accent);
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 167, 183, 0.34);
    height: 26px;
    margin-top: -8px;
    width: 26px;
}

#editBar input[type="range"].eomaia-canvas-range::-moz-range-thumb,
#meter.eomaia-canvas-meter::-moz-range-thumb {
    background: var(--eomaia-accent);
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 167, 183, 0.34);
    height: 22px;
    width: 22px;
}

#editBar input[type="range"].eomaia-canvas-range:focus-visible::-webkit-slider-thumb,
#meter.eomaia-canvas-meter:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(0, 167, 183, 0.18), 0 2px 8px rgba(0, 167, 183, 0.34);
}

#editBar input[type="range"].eomaia-canvas-range:focus-visible::-moz-range-thumb,
#meter.eomaia-canvas-meter:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 5px rgba(0, 167, 183, 0.18), 0 2px 8px rgba(0, 167, 183, 0.34);
}

.eomaia-canvas-edit-control {
    align-self: stretch;
    box-sizing: border-box;
    justify-self: stretch;
}

#editBar input[type="color"] {
    border-color: #d7dee6;
    border-radius: 8px;
    box-sizing: border-box;
    height: 42px;
    margin: 8px auto;
    max-width: 160px;
    width: min(100%, 160px);
}

#editBar button[name="editItem"] {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    color: var(--eomaia-ink-soft);
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    width: 100%;
}

#editBar button[name="editItem"]:hover,
#editBar button[name="editItem"]:focus {
    border-color: var(--eomaia-accent);
    color: var(--eomaia-accent);
}

.eomaia-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 18px 0 36px;
}

.eomaia-page.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.eomaia-page-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 960px;
    padding: 0 14px;
}

.eomaia-page-section {
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px;
}

.eomaia-static-copy .row,
.eomaia-static-copy.row {
    display: block;
    margin: 0 auto;
}

.eomaia-static-copy {
    user-select: text;
    -webkit-user-select: text;
}

.eomaia-static-copy .col-12 {
    padding: 0;
    width: 100%;
}

.eomaia-static-copy h1 {
    color: var(--eomaia-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}

.eomaia-static-copy h2 {
    color: var(--eomaia-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px;
}

.eomaia-static-copy p,
.eomaia-static-copy li {
    color: var(--eomaia-ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.eomaia-static-copy ul {
    margin: 0 0 10px;
    padding-left: 1.25rem;
}

.eomaia-static-copy li {
    margin-bottom: 6px;
}

.eomaia-page-section p {
    color: var(--eomaia-ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.eomaia-page-section p {
    margin: 0 0 10px;
}

.eomaia-page-section p:last-child {
    margin-bottom: 0;
}

.eomaia-legal-page {
    max-width: 1040px;
}

.eomaia-legal-document {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.eomaia-legal-document::before {
    background: linear-gradient(90deg, var(--eomaia-accent), var(--eomaia-violet));
    content: "";
    height: 3px;
    inset: 0 0 auto;
    position: absolute;
}

.eomaia-legal-header {
    background:
        linear-gradient(90deg, rgba(0, 167, 183, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.9));
    background-size: 26px 26px, auto;
    border-bottom: 1px solid var(--eomaia-line-soft);
    padding: clamp(18px, 3vw, 28px);
}

.eomaia-legal-eyebrow {
    color: var(--eomaia-accent-strong) !important;
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 8px !important;
    text-transform: uppercase;
}

.eomaia-legal-lead {
    color: var(--eomaia-muted) !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    max-width: 78ch;
}

.eomaia-legal-section {
    border-top: 1px solid rgba(100, 116, 139, 0.12);
    padding: clamp(16px, 2.6vw, 24px) clamp(18px, 3vw, 28px);
}

.eomaia-legal-header + .eomaia-legal-section {
    border-top: 0;
}

.eomaia-legal-section h2 {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.eomaia-legal-section h2::before {
    background: var(--eomaia-accent-soft);
    border: 1px solid var(--eomaia-line);
    border-radius: 999px;
    content: "";
    flex: 0 0 10px;
    height: 10px;
    width: 10px;
}

.eomaia-legal-clause,
.eomaia-legal-subclause {
    display: grid;
    gap: 8px;
    grid-template-columns: 2.8rem minmax(0, 1fr);
}

.eomaia-legal-subclause {
    margin-left: clamp(8px, 2vw, 22px) !important;
}

.eomaia-legal-number {
    color: var(--eomaia-accent-strong);
    font-weight: 900;
}

.eomaia-legal-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0 0 12px;
    padding-left: 0;
}

.eomaia-legal-list li {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(100, 116, 139, 0.13);
    border-radius: 8px;
    padding: 8px 10px 8px 28px;
    position: relative;
}

.eomaia-legal-list li::before {
    background: linear-gradient(180deg, var(--eomaia-accent), var(--eomaia-violet));
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 12px;
    position: absolute;
    top: 16px;
    width: 7px;
}

.eomaia-legal-footer {
    background: rgba(248, 251, 253, 0.78);
    border-top: 1px solid var(--eomaia-line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px clamp(18px, 3vw, 28px);
}

.eomaia-legal-footer p {
    color: var(--eomaia-muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.eomaia-license-list {
    display: grid;
    gap: 10px;
}

.eomaia-license-list .eomaia-page-section {
    margin-bottom: 0;
}

.eomaia-license-list h1 {
    border-bottom: 1px solid #eef1f4;
    font-size: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.eomaia-license-list p,
.eomaia-license-list a {
    line-height: 1.7;
}

.eomaia-page a {
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .eomaia-page {
        padding-top: 10px;
    }

    .eomaia-page-section {
        padding: 14px;
    }
}

.eomaia-slide-area[data-slide-open="false"] {
    pointer-events: none !important;
    visibility: hidden !important;
}

#scheduleBar,
#menuBar,
#typeBar,
#elementBar {
    align-items: center;
    justify-content: center;
}

#typeBar {
    align-content: center;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
}

#editBar.eomaia-canvas-properties.eomaia-canvas-rotate-editor {
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
}

#editBar.eomaia-canvas-properties.eomaia-canvas-rotate-editor > button[name="editItem"] {
    flex: 0 0 min(42%, 150px);
    max-width: 150px;
    min-height: 48px;
    width: min(42%, 150px);
}

#scheduleBar > span.eomaia-canvas-control {
    flex: 0 0 clamp(46px, 17vw, 104px) !important;
    height: calc(100% - 4px) !important;
    min-width: 38px;
    width: auto !important;
}

@media (max-width: 640px) {
    .eomaia-canvas-properties {
        gap: 8px;
        padding: 8px;
    }

    .eomaia-canvas-range-field {
        gap: 7px;
        grid-template-columns: 30px minmax(0, 1fr) 44px;
        max-width: 100%;
        min-height: 48px;
        padding: 7px 8px;
    }

    .eomaia-canvas-range-icon {
        font-size: 20px;
        height: 32px;
        width: 32px;
    }

    .eomaia-canvas-range-value {
        min-width: 42px;
        padding: 7px 6px;
    }
}

@media (max-width: 360px) {
    .eomaia-canvas-range-field {
        gap: 6px;
        grid-template-columns: 28px minmax(0, 1fr) 40px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .eomaia-canvas-range-icon {
        height: 28px;
        width: 28px;
    }
}

.eomaia-chat-thread {
    align-content: stretch !important;
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.eomaia-chat-thread > div:not(.eomaia-chat-bubble) {
    flex: 0 0 auto;
    height: 0;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.eomaia-chat-thread .eomaia-chat-self {
    align-self: flex-end;
}

.eomaia-chat-thread .eomaia-chat-other {
    align-self: flex-start;
}

/* Unified future theme */
body {
    background:
        linear-gradient(90deg, var(--eomaia-future-bg-grid) 1px, transparent 1px),
        linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, rgba(124, 58, 237, 0.035) 42%, transparent 72%),
        var(--eomaia-future-bg);
    background-size: 28px 28px, 100% 100%, auto;
    color: var(--eomaia-future-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
    background: rgba(0, 167, 183, 0.22);
    color: var(--eomaia-future-ink);
}

.btn {
    border-radius: 8px;
    font-weight: 800;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.is-active,
.btn-outline-primary.active {
    background-color: var(--eomaia-future-cyan);
    border-color: var(--eomaia-future-cyan);
    color: #ffffff;
}

.btn-outline-primary {
    border-color: rgba(0, 167, 183, 0.5);
    color: #007f8f;
}

.btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.52);
    border-color: var(--eomaia-future-line-soft);
    color: var(--eomaia-future-muted);
}

.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
}

.dropdown-menu {
    background: var(--eomaia-future-panel-strong);
    border-color: var(--eomaia-future-line);
    border-radius: 8px;
    box-shadow: var(--eomaia-future-shadow);
    overflow: hidden;
    padding: 6px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.dropdown-item {
    border-radius: 6px;
    color: var(--eomaia-future-ink);
    font-weight: 750;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 167, 183, 0.11);
    color: #006a78;
}

.eomaia-form-shell,
.eomaia-page-section,
.eomaia-detail-material,
.eomaia-detail-panel,
.eomaia-form-panel,
.eomaia-form-check,
.eomaia-form-switch,
.eomaia-confirm-dialog {
    background: var(--eomaia-future-panel);
    border-color: var(--eomaia-future-line);
    box-shadow: var(--eomaia-future-shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.eomaia-form-page,
.eomaia-detail-page,
.eomaia-page {
    background: transparent;
}

.eomaia-static-copy .eomaia-page-section {
    overflow: hidden;
    padding-left: 22px;
    position: relative;
}

.eomaia-static-copy .eomaia-page-section::before {
    background: linear-gradient(180deg, var(--eomaia-future-cyan), var(--eomaia-future-violet));
    content: "";
    inset: 0 auto 0 0;
    pointer-events: none;
    position: absolute;
    width: 3px;
}

.eomaia-static-copy h1,
.eomaia-static-copy h2 {
    color: #0f172a;
}

.eomaia-form-control,
.eomaia-inline-input,
input.form-control,
textarea.form-control,
select.form-select {
    background-color: rgba(255, 255, 255, 0.78);
    border-color: var(--eomaia-future-line-soft);
    color: var(--eomaia-future-ink);
}

.eomaia-form-control:focus,
.eomaia-inline-input:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
    border-color: var(--eomaia-future-cyan);
    box-shadow: 0 0 0 3px rgba(0, 167, 183, 0.18);
}

button:disabled,
.btn:disabled {
    filter: saturate(0.72);
}

#underBar.eomaia-bottom-nav,
.eomaia-inline-bar,
.eomaia-icon-bar,
#chatTitle,
#dialog > span,
#publicBar,
#titleBar,
#registerBar,
#commentBar,
#groupBar,
#camera,
#qrcode,
#setting,
#follow,
#message {
    background: rgba(250, 253, 255, 0.88) !important;
    border-color: var(--eomaia-future-line);
    box-shadow: var(--eomaia-future-glow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

#underBar.eomaia-bottom-nav {
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}

#underBar .eomaia-nav-item {
    border-top-color: transparent;
    color: #526170;
}

#underBar .eomaia-nav-item.is-active {
    background: rgba(0, 167, 183, 0.1);
    border-top-color: var(--eomaia-future-cyan);
    color: #006a78;
}

.eomaia-bar-item,
.eomaia-icon-bar > span {
    color: #526170;
}

.eomaia-icon-bar > span:hover,
.eomaia-icon-bar > span:focus,
.eomaia-icon-bar > span.material-icons,
.eomaia-icon-bar > span.is-active {
    background: rgba(0, 167, 183, 0.1);
    color: #006a78;
}

#add {
    background: linear-gradient(135deg, var(--eomaia-future-cyan), var(--eomaia-future-violet));
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 34px rgba(0, 167, 183, 0.26), 0 0 0 1px rgba(124, 58, 237, 0.16);
}

#profileBox {
    background:
        linear-gradient(90deg, rgba(0, 167, 183, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 250, 0.9)) !important;
    background-size: 32px 32px, auto;
    border-color: var(--eomaia-future-line);
}

#profileBox .container-fluid {
    max-width: 980px;
    padding: clamp(10px, 2.2vw, 16px);
}

#profileBox .row {
    align-content: center;
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-left: 0;
    margin-right: 0;
}

#profileBox .row > .col-12,
#profileBox .row > .col-6 {
    flex: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

#profileBox .row > .col-12 {
    grid-column: 1 / -1;
}

#profileBox .row > .col-6 {
    grid-column: span 6;
}

#profileBox button,
button[data-type="work"],
button[data-type="image"],
button[data-type="audio"],
button[data-type="font"],
button[data-type="user"],
button[data-type="dm"],
button[data-type="member"],
#userArea > a > button,
.eomaia-detail-author,
.eomaia-detail-toggle {
    background: var(--eomaia-future-panel-strong) !important;
    border-color: var(--eomaia-future-line-soft) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

@media (hover: hover) {
    #profileBox button:hover,
    #profileBox button:focus,
    button[data-type="work"]:hover,
    button[data-type="image"]:hover,
    button[data-type="audio"]:hover,
    button[data-type="font"]:hover,
    button[data-type="user"]:hover,
    button[data-type="dm"]:hover,
    button[data-type="member"]:hover,
    #userArea > a > button:hover {
        border-color: var(--eomaia-future-cyan) !important;
        box-shadow: 0 12px 30px rgba(0, 167, 183, 0.16);
        transform: translateY(-1px);
    }
}

#profileBox #username {
    align-items: center;
    display: flex;
    gap: 9px;
    justify-content: flex-start;
    min-height: 52px !important;
    padding: 10px 12px !important;
}

#profileBox #username::before {
    align-items: center;
    background: rgba(0, 167, 183, 0.12);
    border: 1px solid rgba(0, 167, 183, 0.22);
    border-radius: 8px;
    color: #006a78;
    content: "ID";
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 12px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

.eomaia-profile-intro {
    background: rgba(255, 255, 255, 0.68) !important;
    border-style: dashed !important;
    line-height: 1.5 !important;
    max-height: clamp(46px, 8vh, 72px);
    padding: 9px 11px !important;
}

#chatTitle::before {
    background: rgba(0, 167, 183, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 167, 183, 0.2);
    color: #006a78;
}

#chatTitle::after {
    background: var(--eomaia-future-green);
}

.eomaia-chat-thread {
    background:
        linear-gradient(90deg, rgba(100, 116, 139, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 242, 247, 0.86));
    background-size: 28px 28px, auto;
    gap: 6px;
}

.eomaia-slide-area {
    background-color: #eef7fa !important;
    background:
        linear-gradient(90deg, rgba(0, 167, 183, 0.075) 1px, transparent 1px),
        linear-gradient(180deg, #fbfdff, #eef7fa) !important;
    background-size: 28px 28px, auto;
    border-top: 1px solid var(--eomaia-future-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--eomaia-future-glow);
}

.eomaia-chat-bubble {
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.1);
    padding: 9px 11px;
}

.eomaia-chat-self {
    background: linear-gradient(180deg, rgba(212, 246, 249, 0.96), rgba(190, 237, 244, 0.96));
    border-color: rgba(0, 167, 183, 0.22);
}

.eomaia-chat-other {
    background: rgba(255, 255, 255, 0.96);
}

.eomaia-material-footer {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.62));
    gap: 6px;
    padding: 38px 44px 9px 9px;
}

.eomaia-material-pill {
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

button[data-type="audio"],
button[data-type="font"] {
    min-height: 72px;
    padding: 12px 44px 12px 12px;
}

.eomaia-material-type-icon,
.eomaia-connection-icon,
.eomaia-user-card-icon {
    background: rgba(0, 167, 183, 0.11);
    border-radius: 8px;
    color: #006a78;
}

.eomaia-detail-layout {
    margin-left: auto;
    margin-right: auto;
    max-width: 1120px;
    row-gap: 12px;
}

.eomaia-form-shell {
    padding: clamp(14px, 2.4vw, 20px);
}

.eomaia-form-tab,
.eomaia-form-submit {
    min-height: 48px;
}

.eomaia-canvas-overlay {
    background-color: #f8fbfd;
    background-image:
        linear-gradient(45deg, rgba(0, 167, 183, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 167, 183, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(124, 58, 237, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(124, 58, 237, 0.08) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.eomaia-canvas-timeline,
.eomaia-canvas-toolstrip,
.eomaia-canvas-properties,
.eomaia-canvas-control,
#scheduleBar > span,
#menuBar > span,
#typeBar > span,
#elementBar > span,
#editBar input[type="color"],
#editBar button[name="editItem"],
.eomaia-canvas-range-field {
    border-color: var(--eomaia-future-line) !important;
    border-radius: 8px;
}

.eomaia-canvas-properties {
    background: rgba(247, 251, 253, 0.92) !important;
}

#dialog.eomaia-canvas-sheet > .eomaia-canvas-control,
#dialog.eomaia-canvas-sheet > span,
#dialog.eomaia-canvas-sheet > button {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#dialog.eomaia-canvas-sheet > span {
    font-size: clamp(18px, calc(var(--eomaia-app-bar-height) * 0.34), 24px) !important;
}

#dialog.eomaia-canvas-sheet #length {
    font-size: 12px !important;
    line-height: 1.1;
}

#audioTitle,
#fontTitle,
#fontText {
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 520px) {
    #profileBox .container-fluid {
        padding: 9px;
    }

    #profileBox #username {
        min-height: 48px !important;
    }

    #profileBox #username::before {
        flex-basis: 32px;
        height: 32px;
        width: 32px;
    }

    .eomaia-profile-intro {
        max-height: 54px;
    }
}
