body {
    height: 100vh;
    overflow: hidden;
    padding: 8px 12px;
    background: var(--slack-bg);
}

.sidebar-sections,
.message-list,
.channel-meetingminutes-wrapper,
.member-suggestions,
.meetingminutes-list,
.attachment-list {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable both-edges;
}

.sidebar-sections:hover,
.message-list:hover,
.channel-meetingminutes-wrapper:hover,
.member-suggestions:hover,
.meetingminutes-list:hover,
.attachment-list:hover {
    scrollbar-color: rgba(17,100,163,0.45) transparent;
}

.sidebar-sections::-webkit-scrollbar,
.message-list::-webkit-scrollbar,
.channel-meetingminutes-wrapper::-webkit-scrollbar,
.member-suggestions::-webkit-scrollbar,
.meetingminutes-list::-webkit-scrollbar,
.attachment-list::-webkit-scrollbar,
.scrollable::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.sidebar-sections::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb,
.channel-meetingminutes-wrapper::-webkit-scrollbar-thumb,
.member-suggestions::-webkit-scrollbar-thumb,
.meetingminutes-list::-webkit-scrollbar-thumb,
.attachment-list::-webkit-scrollbar-thumb,
.scrollable::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: transparent;
    transition: background 0.15s ease;
}

.sidebar-sections::-webkit-scrollbar-track,
.message-list::-webkit-scrollbar-track,
.channel-meetingminutes-wrapper::-webkit-scrollbar-track,
.member-suggestions::-webkit-scrollbar-track,
.meetingminutes-list::-webkit-scrollbar-track,
.attachment-list::-webkit-scrollbar-track,
.scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sections:hover::-webkit-scrollbar-thumb,
.message-list:hover::-webkit-scrollbar-thumb,
.channel-meetingminutes-wrapper:hover::-webkit-scrollbar-thumb,
.member-suggestions:hover::-webkit-scrollbar-thumb,
.meetingminutes-list:hover::-webkit-scrollbar-thumb,
.attachment-list:hover::-webkit-scrollbar-thumb,
.scrollable:hover::-webkit-scrollbar-thumb {
    background: rgba(17,100,163,0.6);
}

.approval-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    margin-left: 6px;
}

/* ====== Auth（ログイン・メンバー作成） ====== */
#authView {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: radial-gradient(circle at top, #222529, #0b0c0e); */
    /* color: #f9fafb; */
    color: #333;
}

.auth-card {
    /* background: #19171d; */
    background: #f6f6f6;
    padding: 24px 26px 22px;
    border-radius: 8px;
    width: 380px;
    max-width: calc(100% - 32px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    /* border: 1px solid #27252c; */
}

.auth-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.auth-logo-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #36c5f0, #2eb67d);
}

.auth-card h1 {
    font-size: 18px;
    font-weight: 700;
}

.auth-card p {
    font-size: 14px;
    /* color: #b3b3b3; */
    color: #333;
    margin-bottom: 14px;
}

.auth-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

.auth-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    /* color: #e5e7eb; */
    color: #333;
}

.auth-inline-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.user-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 8px;
    border: 1px solid #333;
}

.user-list li {
    margin-bottom: 6px;
}

.auth-fullwidth {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.auth-actions-dual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.auth-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ====== 共通ボタン ====== */
/* ====== アバター（メンバーアイコン） ====== */
.avatar {
    position: relative;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.avatar svg {
    width: 90%;
    height: 90%;
    margin-top: 4px;
    display: block;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-status-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    bottom: 0px;
    right: 0px;
    box-shadow: 0 0 0 1px var(--avatar-border-on-dark);
}

.avatar-online .avatar-status-dot {
    background: #2BAC76;
}

.avatar-offline .avatar-status-dot {
    background: #ffffff;
}

/* ====== アプリ本体 ====== */
#app {
    display: flex;
    height: calc(100vh - 16px);
    background: var(--slack-main-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

/* サイドバー & 縦リサイズバー */
.sidebar {
    width: var(--sidebar-width);
    background: var(--slack-sidebar-bg);
    color: var(--slack-sidebar-text);
    display: flex;
    flex-direction: column;
}

#verticalResizer {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

#verticalResizer:hover {
    border-right-color: rgba(255, 255, 255, 0.35);
}

/* サイドバー内 */
.workspace-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--slack-sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.workspace-header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.workspace-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--slack-sidebar-text);
}

.sidebar-sections {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
}

.section {
    padding: 0;
}

.section-header {
    padding: 4px 12px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--slack-sidebar-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-collapse-btn {
    border: none;
    background: none;
    color: var(--slack-sidebar-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.section-collapse-btn:hover {
    color: var(--slack-sidebar-text);
}

.section-collapse-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.section-collapse-btn[aria-expanded="false"] .section-collapse-icon {
    transform: rotate(-90deg);
}

.icon-button {
    border: none;
    background: none;
    color: var(--slack-sidebar-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}

.icon-button:hover {
    color: var(--slack-sidebar-text);
}

.dropdown {
    position: absolute;
    right: 8px;
    top: 22px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
    min-width: 190px;
    z-index: 30;
    overflow: hidden;
}

.dropdown button {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #111827;
}

.dropdown button:hover {
    background: #f3f4f6;
}

.new-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ab27b;
    display: inline-flex;
    margin-left: 10px;
    box-shadow: 0 0 0 1px var(--slack-sidebar-bg);
}

.channel-header-right .new-indicator {
    box-shadow: 0 0 0 2px #ffffff;
}

.channel-list,
.collapsible-list {
    list-style: none;
    padding-left: 12px;
}

.channel-empty-item {
    margin: 6px 12px 10px;
    font-size: 14px;
    color: rgb(107, 114, 128);
    padding: 2px 0;
}

.collapsible-list {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.collapsible-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.popup-panel {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 20px;
    width: min(520px, 95vw);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.popup-panel.login-panel {
    width: 580px;
}

.popup-panel.register-panel {
    width: min(800px, 95vw);
}

.popup-panel.toast-panel {
    width: min(360px, 90vw);
}

.popup-panel.confirm-register-panel {
    width: min(700px, 96vw);
}

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    z-index: 300;
}

.tour-panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    width: min(540px, 95vw);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: absolute;
    pointer-events: auto;
}

.tour-progress {
    font-size: 13px;
    color: #6b7280;
}

.tour-panel h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    color: #0f172a;
}

.tour-panel p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
}

.tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-highlight {
    position: relative;
    z-index: 301;
    box-shadow: 0 0 0 3px #2563eb inset, 0 0 0 6px rgba(37, 99, 235, 0.25);
    border-radius: 6px;
    transition: box-shadow 0.15s ease;
    transform: scale(1.02);
}

.nft-value {
    word-break: break-all;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.nft-json {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    background: #f8fafc;
    min-height: 180px;
}

.nft-desc {
    margin: 4px 0 8px;
    color: #475569;
}

.register-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.register-steps .step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
}

.register-steps .step .step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d1d5db;
    color: #111827;
    font-weight: 700;
    font-size: 12px;
}

.register-steps .step.active {
    background: #e0f2fe;
    color: #0f172a;
    font-weight: 700;
}

.register-steps .step.active .step-index {
    background: #2563eb;
    color: #ffffff;
}

.register-steps .step.done {
    background: #ecfdf3;
    color: #065f46;
}

.register-steps .step.done .step-index {
    background: #10b981;
    color: #ffffff;
}

.register-status {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.register-status.status-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.register-status.status-warning {
    background: #fff7ed;
    color: #c2410c;
}

.register-status.status-error {
    background: #fef2f2;
    color: #b91c1c;
}

.register-status.status-success {
    background: #ecfdf3;
    color: #15803d;
}

.password-reset-panel .wrapper {
    width: 100%;
}

.password-reset-panel h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.reset-description {
    font-size: 14px;
    color: #374151;
    margin: 2px 0;
}

.password-reset-panel .form-group {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-reset-panel label {
    font-size: 14px;
    font-weight: 600;
}

.password-reset-panel input[type="email"] {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.frame.nologin {
    width: 100%;
    height: 100%;
}

.scrollable {
    max-height: 80vh;
    overflow-y: auto;
}

.wrapper.list1 {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.listHeader .title {
    font-size: 20px;
    margin-bottom: 6px;
}

.listHeader .subtitle {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

#redTitle {
    color: #b91c1c;
}

#subtitle_span {
    font-weight: 700;
}

.contents textarea {
    width: 100%;
    min-height: 240px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    resize: vertical;
    font-size: 13px;
}

.flexBox input {
    width: 100%;
}

.button.disabled[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.highlight {
    color: #2563eb;
    font-weight: 700;
}

.required {
    color: red;
}

.areaClose {
    display: none !important;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--slack-text);
}

.channel-item,
.dm-item {
    padding: 4px 6px 4px 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    border-radius: 4px;
    line-height: 20px;
    margin: 0 2px 4px;
    color: var(--slack-sidebar-text);
}

.channel-item {
    justify-content: space-between;
}

.dm-item {
    justify-content: flex-start;
}

.channel-main,
.dm-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.channel-name-text,
.dm-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.channel-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: var(--slack-sidebar-text);
}
.active .channel-icon {
    color: #ffffff;
}
button.active .channel-icon {
    color: var(--slack-sidebar-text);
}

.channel-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.channel-item.active,
.dm-item.active {
    background: var(--slack-sidebar-active-bg);
    color: #ffffff;
}

.channel-item.active:hover,
.dm-item.active:hover {
    background: var(--slack-sidebar-active-bg);
    color: var(--slack-sidebar-active-text);
}

.channel-item:hover,
.dm-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.channel-more-button {
    border: none;
    background: none;
    color: var(--slack-sidebar-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    opacity: 1;
    transition: opacity 0.1s ease;
    flex-shrink: 0;
}

.channel-item:hover .channel-more-button {
    opacity: 1;
}

.dm-avatar {
    display: flex;
    margin-right: 4px;
}
.dm-avatar .avatar-sm {
    align-items: center;
    width: 26px;
    height: 26px;
}

.dm-avatar-stack {
    display: flex;
    align-items: center;
}

.dm-avatar-stack .avatar {
    margin-left: -8px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    width: 26px;
    height: 26px;
}

.dm-avatar-stack .avatar:first-child {
    margin-left: 0;
}

.dm-avatar-plus {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--slack-sidebar-muted);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid var(--slack-sidebar-bg);
}

.dm-close-btn {
    border: none;
    background: none;
    color: var(--slack-sidebar-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    flex-shrink: 0;
}

.dm-close-btn:hover {
    color: var(--slack-sidebar-text);
}

.dm-target-hint {
    margin-top: 4px;
    color: var(--slack-text-muted);
}

/* サイドバー下部 メンバーエリア */
.sidebar-footer {
    border-top: 1px solid var(--slack-sidebar-border);
    padding: 8px 10px;
    position: relative;
}

.sidebar-user-btn {
    width: 100%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    color: var(--slack-sidebar-text);
}

.sidebar-user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-user-avatar {
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 16px;
    /* font-weight: 600; */
    color: var(--slack-sidebar-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 14px;
    color: var(--slack-sidebar-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user-more {
    font-size: 16px;
    color: var(--slack-sidebar-muted);
    flex-shrink: 0;
}

.sidebar-user-menu {
    position: absolute;
    bottom: 40px;
    left: 16px;
    right: auto;
    top: auto;
}

/* フォルダ右クリック用メニュー */
#channelContextMenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
    min-width: 190px;
    z-index: 40;
    overflow: hidden;
}

#channelContextMenu button {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #111827;
}

#channelContextMenu button:hover {
    background: #f3f4f6;
}

/* 会議録ドロップダウン（フォルダごと） */
.channel-meetingminutes-dropdown-row {
    margin: 0 4px 8px;
    padding-left: 4px;
    color: var(--slack-sidebar-text);
}

.channel-meetingminutes-dropdown {
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.meetingminutes-list {
    /* max-height: 220px; */
    overflow-y: auto;
}

.meetingminutes-item,
.meetingminutes-create-btn {
    width: 100%;
    padding: 4px;
    border: none;
    background: none;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    color: var(--slack-sidebar-text);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.meetingminutes-item-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.meetingminutes-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    padding-right: 48px;
}

.meetingminutes-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meetingminutes-item-date {
    font-size: 13px;
    color: var(--slack-sidebar-muted);
    flex-shrink: 0;
    width: 64px;
    text-align: right;
    margin-right: 52px;
}

.meetingminutes-item-indicators {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    position: absolute;
    right: 10px;
}

.confirm-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 500px;
    overflow-y: auto;
}

.confirm-summary .confirm-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
}

.confirm-summary dt {
    font-weight: 700;
    color: #0f172a;
}

.confirm-summary dd {
    margin: 0;
    color: #1f2937;
    line-height: 1.5;
}

.confirm-summary p {
    margin: 6px 0;
}

.confirm-summary .label {
    font-weight: 700;
    margin-right: 4px;
}

.required-label .required-label-text::after {
    content: "必須";
    display: inline-block;
    margin-top: -2px;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 16px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecdd3;
    border-radius: 4px;
    vertical-align: middle;
}

.meetingminutes-item-approval-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    position: absolute;
    right: 30px;
}

.meetingminutes-item:hover,
.meetingminutes-create-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.meetingminutes-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid currentColor;
    flex-shrink: 0;
}

.meetingminutes-item-badge-draft {
    color: #b45309;
    border-color: #fbbf24;
    background: #fef3c7;
}

.meetingminutes-item.active {
    background: rgba(17, 100, 163, 0.25);
    /* font-weight: 600; */
}

.meetingminutes-divider {
    height: 1px;
    background: var(--slack-sidebar-border);
    margin: 2px 0;
}

/* メインエリア ＋ 横リサイズバー */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--slack-main-bg);
    min-height: 0;
    padding-right: 4px;
}

.main-toolbar {
    border-bottom: 1px solid var(--slack-border);
    background: #ffffff;
    padding: 8px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.language-selector {
    appearance: none;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: var(--slack-text);
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    font-size: 14px;
    line-height: 1.2;
    min-height: 32px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.language-selector:focus {
    outline: none;
    border-color: var(--slack-accent);
    box-shadow: 0 0 0 2px rgba(17, 100, 163, 0.18);
}

.language-selector:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.workspace-search {
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    /*  */
    position: relative;
}

.toolbar-language {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.toolbar-language .language-selector {
    min-width: 120px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .main-toolbar {
        justify-content: space-between;
        gap: 8px;
    }
    .toolbar-language {
        position: static;
        transform: none;
    }
    .workspace-search {
        width: 100%;
    }
}

#globalSearchInput {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    /*  */
    padding-right: 90px;
    font-size: 16px;
    outline: none;
    background: #f9fafb;
}

#globalSearchInput:focus {
    border-color: var(--slack-accent);
    box-shadow: 0 0 0 2px rgba(17,100,163,0.15);
    background: #ffffff;
}

#globalSearchInput::-webkit-search-cancel-button,
#globalSearchInput::-webkit-search-decoration,
#globalSearchInput::-webkit-search-results-button,
#globalSearchInput::-webkit-search-results-decoration {
    /* display: none; */
    margin-right: 15px;
    margin-top: 2px;
}

/*  */

.search-nav {
    position: absolute;
    right: 12px;
    top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    background: transparent;
    height: 32px;
}

.search-nav.hidden {
    display: none;
}

.search-counter {
    font-size: 13px;
    color: #6b7280;
    margin-right: 4px;
    font-family: monospace;
}

.search-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s;
}

.search-nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-nav-btn:active {
    background: rgba(0, 0, 0, 0.2);
}
/*  */
.workspace-search-hint {
    font-size: 12px;
    color: #9ca3af;
}

.channel-header {
    flex: 0 0 56px;
    border-bottom: 1px solid var(--slack-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #ffffff;
    gap: 8px;
}

.channel-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.channel-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

#currentChannelName {
    font-weight: 700;
    font-size: 17px;
    color: #0f172a;
}

.channel-header-sub {
    font-size: 16px;
    color: var(--slack-text-muted);
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.channel-member-label {
    font-size: 14px;
    color: var(--slack-text-muted);
}

body.dm-view .channel-member-label {
    display: none;
}

.channel-member-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.channel-member-stack .avatar {
    border-radius: 8px;
    border: 1px solid var(--slack-main-bg);
    margin: 0;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
}

.channel-member-count {
    font-size: 14px;
    color: var(--slack-text-muted);
}

.content-split {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

#horizontalResizer {
    width: 4px;
    cursor: col-resize;
    background: #e5e7eb;
    border-left: 1px solid #e5e7eb;
    align-self: stretch;
}

#horizontalResizer.hidden {
    display: none !important;
}

#horizontalResizer:hover {
    border-left-color: #cbd5e1;
}

/* 会議録エリア（フォルダ＆会議録選択時のみ） */
.channel-meetingminutes-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 320px;
    padding: 16px 32px;
    background: #ffffff;
    overflow-y: auto;
    border-right: 1px solid var(--slack-border);
}

.meetingminutes-content.hidden {
    display: none;
}

.meetingminutes-empty-state {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #475467;
    padding: 28px;
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 28px;
    width: 100%;
}

.channel-meetingminutes-card {
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(15,23,42,0.35);
}

.channel-meetingminutes-wrapper.search-hit {
    box-shadow: inset 0 0 0 2px #fef08a;
}

.channel-meetingminutes-wrapper input,
.channel-meetingminutes-wrapper textarea,
.channel-meetingminutes-wrapper select {
    background: #ffffff;
}

.channel-meetingminutes-fields {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}


.channel-meetingminutes-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.channel-meetingminutes-inline .modal-field {
    min-width: 0;
    flex: 1 1 320px;
}

.meetingminutes-datetime-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#minutesDateInput,
#minutesStartTimeInput,
#minutesEndTimeInput {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 16px;
    background: #ffffff;
}

#minutesDateInput {
    width: auto;
    flex: 1 1 150px;
}

.channel-meetingminutes-inline .modal-field:first-child {
    flex: 1 1 280px;
    min-width: 220px;
}

.channel-meetingminutes-inline .modal-field:last-child {
    flex: 2 1 360px;
}

.meetingminutes-time-range {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 2 1 220px;
    min-width: 0;
}

#minutesStartTimeInput,
#minutesEndTimeInput {
    width: auto;
    flex: 1 1 90px;
}

@media (max-width: 600px) {
    .channel-meetingminutes-inline {
    flex-direction: column;
    }
    .channel-meetingminutes-inline .modal-field:first-child,
    .channel-meetingminutes-inline .modal-field:last-child {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    }
    .meetingminutes-datetime-group {
    flex-direction: column;
    }
    .meetingminutes-time-range {
    width: 100%;
    }
    #minutesDateInput,
    #minutesStartTimeInput,
    #minutesEndTimeInput {
    width: 100%;
    flex: 1 1 100%;
    }
}

.meetingminutes-time-separator {
    color: #6b7280;
    font-size: 14px;
}

#minutesDateInput:focus,
#minutesStartTimeInput:focus,
#minutesEndTimeInput:focus {
    border-color: var(--slack-accent);
    box-shadow: 0 0 0 1px rgba(17,100,163,0.3);
    outline: none;
}

.meetingminutes-datetime-preview {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.meetingminutes-helper,
.helper-banner {
    background: #e0f2fe;
    border: 1px solid #bfdbfe;
    color: #0b56a0;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 8px 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

.channel-meetingminutes-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.meetingminutes-action-btn {
    min-width: 96px;
}
.meetingminutes-action-right {
    margin-left: auto;
}

.channel-meetingminutes-textarea {
    width: 100%;
    min-height: 80px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    resize: vertical;
    font-family: inherit;
}

.channel-meetingminutes-textarea:focus {
    border-color: var(--slack-accent);
    box-shadow: 0 0 0 1px rgba(17,100,163,0.4);
    outline: none;
}

/* 承認（ハンコ） */
.meetingminutes-approval-section {
    margin-top: 6px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 6px;
}

.meetingminutes-approval-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.meetingminutes-approval-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    align-items: flex-end;
}

.meetingminutes-hanko {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #d74b4b;
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.9;
    cursor: default;
}

.meetingminutes-hanko span {
    text-align: center;
    line-height: 1.1;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
}

.meetingminutes-approval-empty {
    font-size: 14px;
    color: #9ca3af;
}

/* チャットエリア（下半分） */
.chat-wrapper {
    flex: 0 0 var(--chat-panel-width);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 280px;
    background: #ffffff;
    /* border-left: 1px solid var(--slack-border); */
}

body.chat-toggle-mode .chat-wrapper {
    display: none;
    min-width: 0;
    flex: 0 0 auto;
}

body.chat-toggle-mode.chat-panel-open .chat-wrapper {
    display: flex;
}

body.dm-view:not(.chat-toggle-mode) .chat-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

body.chat-toggle-mode .chat-toggle-btn {
    display: inline-flex;
    margin-left: auto;
}

.chat-panel-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--slack-border);
    background: #fafafa;
}

.chat-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.chat-panel-subtitle {
    font-size: 13px;
    color: var(--slack-text-muted);
}

.message-list {
    flex: 1;
    padding: 12px 16px 16px;
    overflow-y: auto;
    background: #f8f9f9;
}

.chat-empty-state {
    padding: 32px 16px;
    text-align: center;
    font-size: 15px;
    color: var(--slack-text-muted);
}

.message {
    display: flex;
    /* margin-bottom: 4px; */
    font-size: 16px;
    color: var(--slack-text);
    border-radius: 4px;
    padding: 2px 4px;
}

.message.search-highlight {
    background: #fef9c3;
}

.message.chained-message {
       /* margin-top: -8px;
    margin-bottom: 2px; */
    /* margin-top: -4px;
    margin-bottom: 0px; */
    margin-top: 0;
}

.message:not(.chained-message) {
     /* margin-top: 12px; */
    margin-top: 8px;
}

.message.chained-message .message-avatar {
    width: 32px; /* Same width as avatar-sm to maintain alignment */
}

.message-content-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.message-sub-time {
    font-size: 11px;
    color: #8d8d8f;
    opacity: 0.8;
}

.message-sub-time {
    display: none;
    font-size: 11px;
    color: #8d8d8f;
    opacity: 0.8;
}

.message:hover .message-sub-time {
    display: inline;
}

.message-avatar {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.message-avatar .avatar-sm {
    width: 32px;
    height: 32px;
}

.message-body {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 2px;
    gap: 6px;
}

.message-user {
    /* font-weight: 700; */
    font-size: 16px;
    color: var(--slack-sidebar-text);
}

.message-time {
    font-size: 12px;
    color: #8d8d8f;
}

.message-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 24px;
}

/* リアクション */
.message-reactions-row {
    /* margin-top: 4px; */
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.message-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.reaction-chip {
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 13px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.reaction-chip:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.reaction-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px dotted #d1d5db;
    background: #ffffff;
    cursor: pointer;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 300;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.reaction-add-btn:hover {
    border: 1px solid var(--slack-accent);
    color: var(--slack-accent);
    background: #f0f9ff;
    transform: scale(1.1);
}


.reaction-picker {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.reaction-picker.hidden {
    display: none;
}

.reaction-emoji-btn {
    border-radius: 14px;
    padding: 2px 8px;
    font-size: 16px;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    cursor: pointer;
}

.reaction-emoji-btn:hover {
    background: #eef2ff;
}

.message-form {
    flex: 0 0 auto;
    border-top: 1px solid var(--slack-border);
    padding: 8px 16px 12px;
    background: #ffffff;
}

.message-form-inner {
    border: 1px solid #c4c7cb;
    border-radius: 8px;
    padding: 2px 8px 4px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.message-form-inner textarea {
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    padding: 6px 4px 4px;
    outline: none;
    max-height: 140px;
    min-height: 40px;
    color: var(--slack-text);
}

.message-form-inner textarea::placeholder {
    color: #9b9b9f;
}

.message-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.message-form button {
    align-self: flex-end;
}

/* モーダル（共通） */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop.hidden {
    display: none !important;
}

.modal {
    background: #ffffff;
    border-radius: 8px;
    width: 420px;
    max-width: calc(100% - 32px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    padding: 18px 20px 18px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--slack-text);
}

.modal-step-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-body {
    margin-bottom: 8px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.required-label-text::after {
    content: " *";
    color: #b91c1c;
    font-weight: 700;
}

.pending-indicator {
    margin-left: 6px;
    font-size: 14px;
    color: #b91c1c;
}

.channel-meetingminutes-title-input {
    width: 100%;
    min-height: 44px;
    font-size: 20px;
    line-height: 28px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    font-weight: 600;
    resize: vertical;
    font-family: inherit;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.radio-option span {
    color: #4b5563;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* メンバーサジェスト */
.member-suggestions {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 4px;
    margin-bottom: 6px;
    background: #ffffff;
}

.member-suggestion-item {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
}

.member-suggestion-item:hover {
    background: #f3f4f6;
}

.member-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    border-radius: 4px;
    padding: 2px;
}

.member-chip {
    border-radius: 16px;
    padding: 2px 8px;
    font-size: 14px;
    background: #e5e7eb;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.member-chip-remove {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    color: #6b7280;
}

.member-chip-remove:hover {
    color: #111827;
}

.modal-field.has-error .meetingminutes-attachment-controls,
.modal-field.has-error .member-selected {
    border: 1px solid #e11d48;
    background: #fff1f2;
    border-radius: 4px;
}

.meetingminutes-attachment-field {
    margin-top: 6px;
}

.meetingminutes-attachment-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    padding: 4px 0;
}

.btn-attachment {
    gap: 6px;
    display: inline-flex;
    align-items: center;
}

.icon-clip {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-clip svg {
    width: 18px;
    height: 18px;
    display: block;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-size: 14px;
    color: #1f2937;
}

.attachment-remove {
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.attachment-remove:hover {
    color: #ef4444;
}

.attachment-empty {
    font-size: 14px;
    color: #9ca3af;
}

/* 設定モーダル */
.settings-user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.settings-avatar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-avatar-button {
    border: none;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.settings-avatar-button:focus-visible {
    outline: 2px solid var(--slack-accent);
    border-radius: 12px;
}

.settings-avatar-hint {
    font-size: 12px;
    color: #6b7280;
}

.settings-avatar-remove {
    border: none;
    background: none;
    padding: 6px;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-avatar-remove svg {
    width: 18px;
    height: 18px;
}

.settings-avatar-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.settings-avatar-error {
    margin-top: -4px;
    margin-bottom: 8px;
}

.settings-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--slack-text);
}

.settings-user-email {
    font-size: 14px;
    color: var(--slack-text-muted);
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.theme-option {
    width: 100px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.theme-option-palette {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-option-swatch {
    display: block;
    height: 18px;
    border-radius: 6px;
}

.theme-option-swatch-main {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-option-swatch-sidebar {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
}

.theme-option-label {
    font-size: 12px;
    color: var(--slack-text);
    font-weight: 600;
}

.theme-option.selected {
    border-color: var(--slack-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.theme-option:not(.selected):hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.35);
}

/* フォルダ編集用 */
.edit-privacy-inline {
    display: flex;
    gap: 16px;
    align-items: center;
}

.edit-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
}

.edit-member-name {
    flex: 1;
    margin-right: 8px;
}

.edit-member-remove {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #ef4444;
}

.edit-member-remove:hover {
    text-decoration: underline;
}
.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 90;
}

.nav-toggle-btn {
    display: none;
    border: 1px solid var(--slack-border);
    border-radius: 6px;
    background: #fff;
    width: 36px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle-btn span {
    width: 18px;
    height: 2px;
    background: var(--slack-text);
    display: block;
    margin: 3px 0;
    border-radius: 1px;
}

.chat-toggle-btn {
    display: none;
}

.chat-toggle-btn.hidden {
    display: none !important;
}

.app-overlay.hidden {
    display: none !important;
}

@media (max-width: 1200px) {
    #app {
    height: calc(100vh - 12px);
    }
}

@media (max-width: 800px) {
    #app {
    flex-direction: column;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
    }
    .sidebar {
    width: 100%;
    border-right: none;
    }
    #verticalResizer,
    #horizontalResizer {
    display: none !important;
    }
    .content-split {
    flex-direction: column;
    }
    .channel-meetingminutes-wrapper {
    border-right: none;
    padding: 16px;
    }
    .chat-wrapper {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    }
    .main {
    padding-right: 0;
    }
}

@media (max-width: 480px) {
    body {
    padding: 0;
    }
    #app {
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    }
    .nav-toggle-btn {
    display: inline-flex;
    }
    body.nav-drawer-mode .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(var(--sidebar-width), 82vw);
    max-width: 85vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 120;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.35);
    }
    body.nav-drawer-mode.nav-drawer-open .sidebar {
    transform: translateX(0);
    }
    body.nav-drawer-mode #verticalResizer {
    display: none !important;
    }
    body.nav-drawer-mode .main {
    width: 100%;
    }
}

.hanko-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ff0000;
    border-radius: 50%;
    padding: 2px;
}

.pointUser{
    margin-top: -14px;
}
