.apps-page {
    padding: 0.75rem;
}

.feedback-banner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid #dbe5ea;
    background: #f7fafc;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.85rem;
}

.feedback-banner-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.feedback-banner-text {
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.feedback-banner-link {
    margin-left: auto;
    white-space: nowrap;
}

.apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.apps-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.apps-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apps-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2f2f2f;
}

.apps-settings {
    font-size: 0.9rem;
    color: #3B7C85;
    text-decoration: none;
}

.apps-layout {
    display: flex;
    gap: 1.5rem;
}

.apps-desktop-priority-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 360px 340px;
    gap: 1rem;
    align-items: start;
}

.apps-search-column,
.apps-deadline-column,
.apps-account-column {
    min-width: 0;
}

.apps-search-column {
    padding: 1rem;
}

.apps-feedback-card .btn {
    width: 100%;
}

.apps-mobile {
    display: none;
}

.apps-sidebar {
    min-width: 0;
}

.apps-main {
    min-width: 0;
}

.apps-panel {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.landing-page {
    --landing-accent: #1f7a8c;
    --landing-accent-soft: #e8f4f7;
    --landing-paper: #fffdf8;
    --landing-ink: #24303a;
    --landing-muted: #55616c;
    --landing-cta: #e46f17;
    --landing-cta-hover: #c95e10;
    padding: 1rem 0.9rem 2.8rem;
    background: linear-gradient(180deg, #fffdf8 0%, #f6efe3 100%);
}

.landing-content {
    margin: 0 auto;
    width: min(100%, 1060px);
    display: grid;
    gap: 1.3rem;
}

.landing-section {
    display: grid;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 1.05rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #efe5d6;
}

.landing-section-alt {
    background: var(--landing-paper);
    border-color: #e7eef2;
}

    .landing-section h1,
    .landing-section h2 {
        margin: 0;
        color: var(--landing-ink);
        line-height: 1.3;
        font-weight: 700;
    }

    .landing-section h1 {
        font-size: 1.88rem;
    }

    .landing-section h2 {
        font-size: 1.42rem;
    }

    .landing-section p {
        margin: 0;
        color: var(--landing-muted);
        line-height: 1.7;
        font-size: 0.98rem;
    }

.landing-hero {
    text-align: left;
    padding-top: 0.2rem;
}

.landing-hero-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.landing-hero-login-note {
    font-size: 0.78rem;
    color: #8c95a1;
    margin: 0;
    white-space: nowrap;
}

.landing-hero-login-link {
    font-size: 0.92rem;
    color: #6b7280;
    text-decoration: none;
    text-underline-offset: 3px;
    font-weight: 600;
    white-space: nowrap;
}

.landing-hero-login-link:hover {
    color: #111827;
    text-decoration: underline;
}

.landing-hero-layout {
    display: grid;
    gap: 0.9rem;
    align-items: center;
}

.landing-hero-copy {
    display: grid;
    gap: 0.72rem;
}

.landing-hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--landing-accent);
    font-weight: 700;
}

.landing-hero-lead {
    font-size: 1.02rem;
    font-weight: 600;
    color: #304455;
}


.landing-beta-note {
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 600;
    text-align: center;
}

.landing-section-actions {
    display: grid;
    justify-items: center;
    margin-top: 0.4rem;
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.12rem;
}

.hero-media {
    border: 1px solid #d4e6ea;
    background: linear-gradient(165deg, #ffffff 0%, var(--landing-accent-soft) 100%);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(22, 49, 64, 0.11);
    padding: 1rem;
    min-height: 280px;
    max-width: 520px;
    display: grid;
    align-content: center;
    gap: 0.64rem;
    justify-self: center;
    width: 100%;
}

.hero-media-search {
    border: 1px solid #c7dbe0;
    border-radius: 12px;
    background: #fff;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    color: #2e4a5d;
    font-size: 0.96rem;
    font-weight: 600;
}

.hero-media-card {
    border: 1px solid #d9e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 0.9rem;
    display: grid;
    gap: 0.45rem;
}

.hero-media-card-active {
    border-color: #9fc9d1;
    box-shadow: 0 5px 18px rgba(31, 122, 140, 0.14);
}

.hero-media-label {
    color: #5f7081;
    font-size: 0.8rem;
}

.hero-media-title {
    font-weight: 700;
    color: #24303a;
}

.hero-media-meta {
    color: #365063;
    font-weight: 500;
    font-size: 0.92rem;
}

.hero-media-button {
    margin-top: 0.3rem;
    background: var(--landing-accent);
    border: 1px solid var(--landing-accent);
    border-radius: 999px;
    color: #fff;
    min-height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 0.92rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.landing-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style-position: outside;
    display: grid;
    gap: 0.56rem;
    color: var(--landing-ink);
    line-height: 1.65;
    width: fit-content;
    max-width: min(100%, 42rem);
    text-align: left;
    margin-inline: auto;
}

.landing-list {
    list-style-type: disc;
}

.landing-value-grid {
    display: grid;
    gap: 0.75rem;
}

.landing-value-card {
    border: 1px solid #deeaee;
    background: #fff;
    border-radius: 16px;
    padding: 0.92rem;
    display: grid;
    gap: 0.34rem;
    text-align: left;
}

.landing-value-card h3 {
    margin: 0;
    font-size: 1.02rem;
    color: #1f2d36;
}

.landing-value-icon {
    margin: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-steps-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.landing-step-card {
    border: 1px solid #dce9ed;
    border-radius: 16px;
    background: #fff;
    min-height: 5.8rem;
    padding: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.landing-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-step-title {
    margin: 0;
    color: var(--landing-ink);
    font-weight: 700;
}

.landing-step-note {
    margin: 0.15rem 0 0;
    color: var(--landing-muted);
    font-size: 0.9rem;
}

.landing-page .landing-plan-section {
    gap: 1.2rem;
}

.landing-page .landing-plan-desc {
    color: #66727d;
}

.landing-page .landing-plan-cards {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
}

.landing-page .landing-plan-card {
    position: relative;
    width: min(100%, 260px);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e8ecef;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 49, 64, 0.06);
    text-align: left;
}

.landing-page .landing-plan-card h3 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.08rem;
}

.landing-page .landing-plan-price {
    margin-top: 0.35rem;
    color: #1f2d36;
    font-size: 1rem;
    font-weight: 700;
}

.landing-page .landing-plan-list {
    margin: 0.95rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
    color: var(--landing-ink);
    line-height: 1.65;
}

.landing-page .landing-plan-card-recommended {
    border: 2px solid #6fb27f;
    transform: scale(1.03);
}

.landing-page .landing-plan-cards > .landing-plan-card:first-child {
    margin-top: 2rem;
}

.landing-page .landing-plan-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #6fb27f;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
}

.landing-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 360px);
    margin: 0;
    min-height: 3.1rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.landing-final-cta {
    justify-items: center;
    gap: 0.7rem;
    padding: 1.6rem 1rem;
}

.landing-hero .btn-primary,
.landing-section-actions .btn-primary,
.landing-final-cta .btn-primary,
.doc-main-action.btn-primary {
    background: var(--landing-cta);
    border-color: var(--landing-cta);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(228, 111, 23, 0.25);
}

.landing-hero .btn-primary:hover,
.landing-section-actions .btn-primary:hover,
.landing-final-cta .btn-primary:hover {
    background: var(--landing-cta-hover);
    border-color: var(--landing-cta-hover);
}

.landing-page .btn:focus-visible,
.landing-page a:focus-visible {
    outline: 3px solid var(--landing-accent);
    outline-offset: 2px;
    border-radius: 20px;
}

.landing-legal-links {
    margin-top: 0.25rem;
    font-size: 0.84rem;
}

.landing-legal-links a {
    color: #5a6773;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-final-note {
    font-size: 0.82rem;
    color: #68737d;
}

.landing-final-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .landing-page {
        padding-top: 1.8rem;
    }

    .landing-content {
        gap: 1.45rem;
    }

    .landing-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
        gap: 1.6rem;
    }

    .landing-section h1 {
        font-size: 2.45rem;
    }

    .landing-section h2 {
        font-size: 1.72rem;
    }

    .landing-section p,
    .landing-list {
        font-size: 1.03rem;
    }

    .landing-value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-plan-cards {
        grid-template-columns: repeat(2, minmax(0, 260px));
        align-items: stretch;
    }

    .landing-steps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-step-card {
        min-height: 8rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        gap: 0.5rem;
    }

    .landing-hero-actions .landing-cta {
        width: auto;
        min-width: 236px;
    }

    .doc-top-actions {
        display:none;
    }
}

@media (max-width: 767px) {
    .landing-page {
        padding-top: 0.65rem;
    }

    .landing-section {
        padding: 1.6rem 1.05rem;
    }

    .landing-hero {
        text-align: left;
    }

    .landing-hero-top {
        gap: 0.4rem;
    }

    .landing-hero-login-note {
        font-size: 0.72rem;
    }

    .landing-hero-login-link {
        font-size: 0.88rem;
    }


    .landing-hero-actions {
        justify-content: flex-start;
    }

    .landing-cta {
        width: min(100%, 100%);
    }

    .landing-plan-card {
        width: min(100%, 320px);
        margin-inline: auto;
    }

    .landing-plan-cards > .landing-plan-card:first-child {
        margin-top: 0;
    }

    .landing-plan-card-recommended {
        transform: none;
    }

    .hero-media {
        margin-top: 0.25rem;
        min-height: 220px;
    }

    .hero-media .hero-media-card:last-child {
        display: none;
    }
}

.hint-card {
    border: 1px solid #e6e1d8;
    background: #fff8e9;
}

.auth-page {
    max-width: 420px;
    margin: 2rem auto;
}

.auth-title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
}

.auth-lead {
    margin: 0 0 1rem;
    color: #2f2f2f;
    font-size: 0.92rem;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #2f2f2f;
}

.search-feedback-link-wrap {
    margin: 0.7rem 0 0;
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.5;
}

.search-feedback-link {
    margin-left: 0.35rem;
    color: #6b7280;
    text-decoration: none;
    text-underline-offset: 3px;
}

.search-feedback-link:hover {
    text-decoration: underline;
    color: #374151;
}

.document-hub-page {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.document-hub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.document-hub-breadcrumb-item {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.document-hub-breadcrumb-sep {
    color: #94a3b8;
    font-size: 0.8rem;
}

.document-hub-header {
    display: grid;
    gap: 0.2rem;
}

.document-hub-title-label {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.document-hub-title {
    margin: 0;
    line-height: 1.35;
    font-size: 1.5rem;
    word-break: break-word;
}

.document-hub-section {
    border: 1px solid #ded7ca;
    border-radius: 14px;
    padding: 0.85rem;
    background: #f7f4ef;
    display: grid;
    gap: 0.55rem;
}

.document-hub-location {
    border-color: #b8d1d6;
    background: #f3f8f9;
}

.document-hub-section h2 {
    margin: 0;
    font-size: 1rem;
}

.document-hub-subcopy {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.document-hub-location-current {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.document-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.document-hub-links {
    display: flex;
    gap: 0.8rem;
}

.document-hub-link {
    border: none;
    background: transparent;
    color: #2f2f2f;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.document-hub-history-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #4b5563;
}

@media (max-width: 767px) {
    .feedback-banner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.45rem 0.6rem;
        align-items: start;
    }

    .feedback-banner-link {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 0;
    }
    .doc-recent-header {
        margin-top: 1rem;
    }
    .doc-top-actions {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
}

.terms-body {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    color: #2f2f2f;
    font-size: 0.92rem;
    line-height: 1.6;
}

.form-checkbox-field > span {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2f2f2f;
}

.card {
    background: #e8e2d8;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

    .card + .card {
        margin-top: 1rem;
    }



.doc-main-action {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
    font-size: 1rem;
}

.doc-main-action-group {
    display: grid;
    gap: 0.25rem;
}

.doc-action-subcopy {
    margin: 0;
    font-size: 0.82rem;
    color: #6a6d70;
    line-height: 1.45;
}

.doc-section-subcopy {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #6a6d70;
    line-height: 1.45;
}

/* .plan-summary-card {
    margin-bottom: 0.75rem;
} */

.plan-summary-grid {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-summary-item {
    border: 1px solid #d5d5d5;
    background: #fafafa;
    border-radius: 14px;
    min-height: 62px;
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
}

.plan-summary-label {
    font-size: 0.82rem;
    color: #6a6d70;
}

.plan-summary-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f2f2f;
}

.plan-summary-value.is-emphasis {
    font-weight: 800;
}

.doc-all-toggle-row {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-end;
}

.card-header h3 {
    margin: 0 0 0.25rem;
}

.card-header p {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.92rem;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.recent-card-toggle {
    flex-shrink: 0;
    min-width: 4.5rem;
}

.recent-card-body {
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.recent-card-body.is-expanded {
    max-height: 520px;
    opacity: 1;
}

.recent-card-body.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.doc-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.doc-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.storage-first-layout {
    display: block;
}

.storage-first-controls,
.storage-first-documents {
    min-width: 0;
}

.storage-first-layout.is-compact {
    grid-template-columns: 1fr;
}

.storage-first-navigation {
    min-width: 0;
}

.storage-first-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.storage-first-title {
    margin: 0;
    font-size: 1.35rem;
}

.storage-first-path {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #5c666d;
}

.storage-path-back {
    border: none;
    background: transparent;
    color: #3B7C85;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.storage-path-current {
    font-weight: 600;
    color: #2f2f2f;
}

.storage-first-actions {
    margin-top: 0.85rem;
}

.storage-section {
    margin-top: 1rem;
}

.storage-section-header h3 {
    margin: 0;
    font-size: 0.98rem;
}

.storage-place-list,
.storage-document-list {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
}

.storage-place-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #ece7de;
}

.storage-place-row,
.storage-document-row {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
}

.storage-place-row-unorganized {
    border-bottom: 1px solid #ece7de;
}

.storage-place-main,
.storage-document-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.storage-place-name,
.storage-document-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f2f2f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-place-count,
.storage-document-meta {
    font-size: 0.84rem;
    color: #5c666d;
}

.storage-place-menu-wrap {
    position: relative;
}

.storage-place-menu-button {
    border: none;
    background: transparent;
    color: #5c666d;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.storage-place-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 100;
    min-width: 8rem;
    padding: 0.35rem 0;
    border: 1px solid #d8d2c8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.storage-place-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.55rem 0.85rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #2f2f2f;
}

.storage-place-menu-item:disabled {
    color: #9aa6ad;
    cursor: not-allowed;
}

.storage-place-chevron {
    color: #9aa6ad;
    font-size: 1rem;
}

.storage-section-divider {
    margin-bottom: 1rem;
    border-top: 1px solid #ece7de;
}

.storage-document-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    color: #7b8790;
    text-align: center;
}

.doc-search {
    margin-top: 0.75rem;
}

.doc-segment {
    margin-top: 0.75rem;
    display: inline-flex;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    overflow: hidden;
}

.doc-segment-button {
    border: none;
    background: #f5f2ec;
    color: #2f2f2f;
    min-height: 2rem;
    padding: 0 0.9rem;
    font-size: 0.86rem;
}

.doc-segment-button.is-active {
    background: #3B7C85;
    color: #ffffff;
}

.doc-search-input {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    font-size: 0.95rem;
}

.upload-compact {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e6e1d8;
    border-radius: 20px;
    background: #faf7f2;
}

    .upload-compact .form-grid {
        min-width: 0;
    }

    .upload-compact .form-field input,
    .upload-compact .form-field select,
    .upload-compact .form-field textarea,
    .upload-compact input[type="file"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .upload-compact input[type="file"] {
        display: block;
    }

    .upload-compact .btn {
        width: 100%;
    }

.upload-compact-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.upload-compact-title {
    font-weight: 600;
}

.upload-compact-note {
    font-size: 0.85rem;
    color: #2f2f2f;
}

.doc-refresh-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    color: #2f2f2f;
}

.doc-summary {
    margin: 0.4rem 0 0.2rem;
    font-size: 0.8rem;
    color: #2f2f2f;
    min-height: 1rem;
}

.doc-summary.is-empty {
    opacity: 0;
}

.doc-filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 0;
}

.doc-storage-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    padding-right: 0.75rem;
    overscroll-behavior-x: contain;
}

.doc-storage-chip-row::-webkit-scrollbar {
    height: 6px;
}

.doc-storage-chip-row::-webkit-scrollbar-thumb {
    background: #c2b9ab;
    border-radius: 999px;
}

.doc-quick-actions {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.doc-storage-heading {
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    color: #5c666d;
    font-weight: 600;
}

.doc-filter-chip {
    border: 1px solid #d5d5d5;
    background: #e8e2d8;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    flex: 0 0 auto;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .doc-filter-chip.is-active {
        background: #3B7C85;
        color: #ffffff;
        border-color: #2f2f2f;
    }


.doc-filter-chip-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.schedule-screen-header {
    margin-bottom: 0;
}

.schedule-page-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.schedule-page-desc {
    font-size: 0.78rem;
    color: #9a9088;
    margin-bottom: 16px;
}

.doc-list.schedule-list {
    gap: 8px;
    margin-top: 8px;
}

.schedule-filter-row {
    margin-bottom: 0.4rem;
}

.schedule-filter-row .doc-filter-chip {
    border-radius: 8px;
    background: #fff;
    color: #7a7368;
    border: 1px solid #d8d2c8;
}

.schedule-filter-row .doc-filter-chip.is-active {
    background: #3d7a5a;
    color: #fff;
    border-color: #3d7a5a;
}

.schedule-document-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.schedule-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e2d8;
}

.schedule-bulk-actions .btn-outline {
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    background: #fff;
    color: #2f2f2f;
}

.schedule-bulk-export-btn {
    background: #3d7a5a;
    color: #fff;
    border: 1px solid #3d7a5a;
    border-radius: 8px;
}

.schedule-bulk-export-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.schedule-bulk-count {
    font-size: 0.75rem;
    color: #9a9088;
    margin-left: auto;
}

.doc-chip-edit-btn {
    border: 1px solid #d5d5d5;
    background: #ffffff;
    color: #5c666d;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.deadline-filter-chips {
    margin-bottom: 0;
}

.doc-refresh-time {
    color: #2f2f2f;
}

.doc-refresh-message {
    color: #3B7C85;
}

.doc-item {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 0.6rem;
    background: #fafafa;
}

.schedule-item {
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.schedule-item.is-selected {
    background: #eef6f1;
    border-color: #3d7a5a;
}

.schedule-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-item__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.schedule-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.schedule-item__edit-btn {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    color: #7a7368;
    white-space: nowrap;
    flex-shrink: 0;
}

.schedule-item__meta {
    font-size: 0.78rem;
    color: #7a7368;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-item-meta-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 2px;
}

.doc-item-collapsible {
    padding: 0;
    overflow: hidden;
}

.doc-item-header {
    display: flex;
    align-items: stretch;
}

.doc-item-open {
    flex: 1;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.6rem;
    display: flex;
    cursor: pointer;
}

.doc-item-open:disabled {
    cursor: default;
    opacity: 0.6;
}

.doc-item-expand {
    border: none;
    background: transparent;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.doc-item-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.doc-item-open-single {
    width: 100%;
}

.doc-item-summary-compact {
    gap: 0.2rem;
}

.doc-compact-second-line {
    font-size: 0.85rem;
    color: #5c666d;
}

.doc-summary-title {
    display: flex;
    align-items: center;
}

.doc-tags-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
}

.doc-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.event-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

.doc-category-tag {
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: #2f2f2f;
    background: #e8e2d8;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.2;
}

button.doc-category-tag {
    appearance: none;
}

.doc-category-tag-more {
    font-weight: 700;
}

.doc-summary-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #2f2f2f;
}

.doc-status-short {
    font-weight: 600;
    color: #3B7C85;
}

.doc-status-note {
    font-weight: 600;
    color: #8a5a00;
    background: #fff2d6;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.doc-item-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #9aa6ad;
    border-bottom: 2px solid #9aa6ad;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.doc-item-collapsible.is-expanded .doc-item-chevron {
    transform: rotate(45deg);
}

.doc-item-detail {
    border-top: 1px solid #e4e4e4;
    padding: 0.6rem;
}

.doc-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.doc-filename {
    font-size: 0.85rem;
    color: #6a6d70;
    margin-bottom: 0.35rem;
    word-break: break-all;
}

.doc-search-empty {
    font-size: 0.85rem;
    color: #2f2f2f;
    line-height: 1.5;
    width: 100%;
}

.doc-empty-state {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pre-line {
    white-space: pre-line;
}

.doc-recent-item {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 0.55rem 0.65rem;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.doc-recent-item:disabled {
    opacity: 0.6;
    cursor: default;
}

.doc-recent-title {
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

@media (max-width: 600px) {
    .doc-summary-title {
        gap: 0.35rem;
    }
}

@media (hover: hover) {
    .doc-item-open:hover {
        background: #f3f6f8;
    }

    .doc-item-open:hover .doc-item-title {
        text-decoration: underline;
    }

    .doc-recent-item:hover {
        background: #f3f6f8;
    }

    .doc-recent-item:hover .doc-recent-title {
        text-decoration: underline;
    }
}

.doc-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.doc-date {
    font-size: 0.85rem;
    color: #6a6d70;
}

.doc-deadline-summary {
    font-weight: 600;
}

.doc-upload-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #2f2f2f;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.link-button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #3B7C85;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.upload-status-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.upload-status-item {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 16px;
    background: #fafafa;
}

.upload-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-status-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-status-meta {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #2f2f2f;
}

.upload-status-processing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #3B7C85;
    font-size: 0.8rem;
}

.upload-status-spinner {
    width: 0.6rem;
    height: 0.6rem;
    border: 2px solid #d6ecf7;
    border-top-color: #3B7C85;
    border-radius: 50%;
    display: inline-block;
    animation: upload-spin 1s linear infinite;
}

.upload-status-date {
    color: #6a6d70;
}

.upload-status-error {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #8a1c1c;
    word-break: break-word;
}

.upload-submit-status {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #2f2f2f;
}

.upload-status-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.upload-status-delete:hover {
    background: #fde2e2;
    border-color: #f5b9b9;
    color: #8a1c1c;
}

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

.doc-status-message {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #2f2f2f;
}

.doc-error-message {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #8a1c1c;
    word-break: break-word;
}

.doc-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.doc-deadline-action {
    display: grid;
    gap: 0.2rem;
}

.doc-inline-subcopy {
    margin: 0;
    font-size: 0.8rem;
    color: #6a6d70;
    line-height: 1.4;
}


.doc-inline-subcopy-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.doc-inline-info-button {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.doc-ocr-info-link {
    display: block;
    font-size: 0.75rem;
    color: #5a7a6a;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: left;
}

.ocr-info-modal-body p {
    margin: 0;
}

.ocr-info-modal-body ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.2rem;
}

.ocr-info-modal-body hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(47, 47, 47, 0.2);
    margin: 0.2rem 0;
}


.doc-inline-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(47, 47, 47, 0.3);
    font-size: 0.78rem;
    line-height: 1;
    color: #2f2f2f;
    cursor: pointer;
}

.doc-inline-info-icon:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.ocr-info-example-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f2f2f;
}

.ocr-info-example-image {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(47, 47, 47, 0.2);
    display: block;
    height: auto;
}

.ocr-info-deadline-modal-body {
    max-height: min(60vh, calc(100dvh - 180px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.deadline-item {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}

.deadline-section {
    display: grid;
    gap: 0.55rem;
}

.deadline-section + .deadline-section {
    margin-top: 0.9rem;
}

.detail-storage-accordion {
    border-top: 1px solid rgba(47, 47, 47, 0.12);
    border-bottom: 1px solid rgba(47, 47, 47, 0.12);
    padding: 0.4rem 0;
    gap: 0.45rem;
}

.detail-storage-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.2rem 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.detail-storage-accordion-texts {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.detail-storage-accordion-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.detail-storage-accordion-current {
    font-size: 0.82rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-storage-accordion-icon {
    font-size: 0.95rem;
    color: #4b5563;
    margin-left: 0.5rem;
}

.detail-storage-accordion-content {
    display: grid;
    gap: 0.55rem;
    animation: detail-storage-accordion-reveal 180ms ease;
}

@keyframes detail-storage-accordion-reveal {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-history-entry {
    display: grid;
    gap: 0.15rem;
    padding: 0.35rem 0;
}

.doc-history-date {
    font-size: 0.8rem;
    color: #6a6d70;
}

.doc-history-transition {
    font-size: 0.9rem;
    color: #2f2f2f;
    line-height: 1.45;
}

.doc-history-note {
    font-size: 0.82rem;
    color: #5f6368;
}

.suggestion-item.is-removing {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.active-deadline-item.is-inserted {
    animation: deadline-insert 320ms ease;
}

@keyframes deadline-insert {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deadline-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f2f2f;
}

.deadline-item-meta {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #6a6d70;
}

.deadline-item-date {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #6a6d70;
}

.icon-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.deadline-meta-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.deadline-item-meta-text {
    min-width: 0;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.deadline-item-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.deadline-item-action-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.event-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.event-pending-item {
    cursor: pointer;
}

.event-pending-item:focus-visible {
    outline: 2px solid #7d8793;
    outline-offset: 2px;
}

.event-pending-item.is-selected {
    border-color: #cdb89a;
    background: #f9f4eb;
}

.schedule-candidate-summary {
    margin-bottom: 0.4rem;
}

.candidate-approval-modal {
    width: min(640px, 100%);
}

.candidate-approval-actions {
    margin: 0.4rem 0 0.6rem;
}

.candidate-approval-list {
    max-height: min(46vh, 380px);
    overflow-y: auto;
    display: grid;
    gap: 0.45rem;
    padding-right: 0.15rem;
}

.candidate-approval-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid #e7e1d5;
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    background: #fff;
    cursor: pointer;
}

.candidate-approval-item-main {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.event-item-main > div {
    min-width: 0;
}

.event-select {
    margin-top: 0.2rem;
}

.deadline-calendar-button {
    width: 100%;
    min-height: 44px;
}

.deadline-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.doc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.doc-modal {
    width: min(520px, 100%);
    background: #e8e2d8;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(85vh, calc(100dvh - 1.5rem));
}

.doc-modal-header {
    padding: 1rem 1rem 0.4rem;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(47, 47, 47, 0.12);
}

.doc-modal-header h4 {
    margin: 0;
}

.doc-modal-header-title {
    margin-top: 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-modal-header-location {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-modal-body {
    padding: 0rem 1rem;
    display: grid;
    gap: 0.7rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 0px;
    position: relative;
}

.doc-modal-body::before,
.doc-modal-body::after {
    content: "";
    display: block;
    position: sticky;
    left: 0;
    right: 0;
    height: 14px;
    pointer-events: none;
    z-index: 1;
}

.doc-modal-body::before {
    top: 0;
    margin: -0.4rem -1rem -14px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0)
    );
}

.doc-modal-body::after {
    bottom: 0;
    margin: -14px -1rem -0.25rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0)
    );
}

.doc-modal-actions {
    padding: 0.8rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    border-top: 1px solid rgba(47, 47, 47, 0.12);
}

.doc-post-create-box {
    font-size: 0.95rem;
    color: #2f2f2f;
}

.storage-template-cta {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d7d0c4;
    border-radius: 18px;
    background: #f7f3ec;
    display: grid;
    gap: 0.45rem;
}

.storage-template-cta__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2f2f2f;
}

.storage-template-cta__body {
    font-size: 0.87rem;
    line-height: 1.5;
    color: #5c666d;
}

.storage-template-cta__button {
    width: 100%;
    justify-content: center;
}

.storage-template-modal-overlay {
    align-items: center;
    padding: 1rem;
}

.storage-template-modal {
    width: min(560px, 100%);
}

.storage-template-modal__lead,
.storage-template-modal__support {
    margin: 0.45rem 0 0;
    line-height: 1.6;
}

.storage-template-modal__lead {
    font-size: 0.95rem;
    color: #2f2f2f;
}

.storage-template-modal__support {
    font-size: 0.84rem;
    color: #5c666d;
}

.storage-template-modal__body {
    padding-top: 0.8rem;
}

.storage-template-option-list {
    display: grid;
    gap: 0.6rem;
    padding-bottom: 0.2rem;
}

.storage-template-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid #d6cdbd;
    border-radius: 16px;
    background: #fffdfa;
    color: #2f2f2f;
}

.storage-template-option input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #3b7c85;
    flex: 0 0 auto;
}

.storage-template-option__label {
    font-size: 0.95rem;
    font-weight: 600;
}

.storage-template-modal__actions .btn {
    min-width: 8.5rem;
}

.doc-primary-actions {
    display: grid;
    gap: 0.45rem;
}

.doc-primary-actions .btn {
    width: 100%;
    justify-content: center;
}


.doc-action-group {
    border: 1px solid rgba(47, 47, 47, 0.12);
    border-radius: 12px;
    padding: 0.7rem;
    display: grid;
    gap: 0.45rem;
}

.doc-action-group + .doc-action-group {
    margin-top: 0.3rem;
}

.doc-action-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
}


.doc-secondary-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.doc-inline-upload {
    margin-top: 0.35rem;
}

.deadline-modal {
    width: min(520px, 100%);
    background: #e8e2d8;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.deadline-modal-header {
    padding: 1rem 1rem 0.4rem;
}

.deadline-modal-header h4 {
    margin: 0;
}

.deadline-modal-body {
    padding: 0.4rem 1rem;
    display: grid;
    gap: 0.7rem;
}

.deadline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: #2f2f2f;
}

.field-error {
    color: #8a1c1c;
    font-size: 0.82rem;
}

.deadline-modal-actions {
    padding: 0.8rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

body.modal-scroll-lock {
    overflow: hidden;
}

.doc-action-delete:hover {
    background: #fde2e2;
    border-color: #f5b9b9;
    color: #8a1c1c;
}

.apps-tabs {
    width: 100%;
    margin: 0 auto;
}

.tabs {
    width: 330px;
    margin: 0 auto;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab {
    border: 1px solid #d5d5d5;
    background: #e8e2d8;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .tab.active {
        background: #3B7C85;
        color: #ffffff;
        border-color: #2f2f2f;
    }

.btn {
    border: 1px solid #3B7C85;
    background: #3B7C85;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-outline {
    background: #e8e2d8;
    color: #2f2f2f;
    border-color: #2f2f2f;
}

.btn-small {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    border-radius: 999px;
    width: fit-content;
}

.btn-primary {
    background: #3B7C85;
    color: #ffffff;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.badge-neutral {
    background: #e3e7ea;
    color: #2f2f2f;
}

.badge-info {
    background: #d6ecf7;
    color: #3B7C85;
}

.badge-success {
    background: #dff4e8;
    color: #1d6a3e;
}

.badge-danger {
    background: #fde2e2;
    color: #8a1c1c;
}

.badge-warn {
    background: #fff2d6;
    color: #8a5a00;
}

.form-grid {
    display: grid;
    gap: 0.75rem;
}

.form-field {
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.checkbox-field {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.5rem 0.6rem;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    font-size: 0.95rem;
}

.hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #2f2f2f;
}

.btn-link-like {
    border: 0;
    background: transparent;
    color: #3b7c85;
    font-size: 0.88rem;
    padding: 0;
    margin-left: 0.2rem;
    text-decoration: underline;
    cursor: pointer;
}

.error-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #8a1c1c;
}

.success-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #1d6a3e;
}

.result-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.result-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.75rem;
    background: #fafafa;
    display: grid;
    gap: 0.5rem;
}

    .result-card p {
        word-break: break-all;
    }

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.result-title {
    font-weight: 600;
}

.result-score {
    font-size: 0.78rem;
    color: #3B7C85;
    white-space: nowrap;
}

.result-meta {
    font-size: 0.85rem;
    color: #5c666d;
    margin-bottom: 0.4rem;
}

.selected-doc {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f3f6f8;
    border-radius: 20px;
    font-size: 0.9rem;
}

.search-page {
    display: grid;
    gap: 1rem;
    max-width: 760px;
}

.search-page-title {
    margin: 0;
    font-size: 1.2rem;
}

.search-form {
    display: grid;
    gap: 0.75rem;
}

.search-form .form-field input[type="text"] {
    min-height: 2.5rem;
}


.search-options {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 0.5rem 0.65rem;
    background: #fafafa;
}

.search-options summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: #2f2f2f;
}

.search-options[open] summary {
    margin-bottom: 0.5rem;
}

.search-submit {
    width: fit-content;
    min-width: 7.5rem;
    min-height: 3rem;
    justify-content: center;
    font-size: 1rem;
}

.candidate-section {
    display: grid;
    gap: 0.6rem;
}

.candidate-subtitle {
    font-size: 0.9rem;
    color: #2f2f2f;
}

.candidate-list {
    display: grid;
    gap: 0.75rem;
}

.candidate-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.75rem;
    background: #e8e2d8;
    display: grid;
    gap: 0.4rem;
}

.candidate-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: start;
}

.candidate-card-main {
    min-width: 0;
    display: grid;
    gap: 0.4rem;
}

.candidate-card.is-selected {
    border-color: #3B7C85;
    background: #f3f6f8;
}

.candidate-title {
    font-weight: 600;
}

.candidate-meta {
    font-size: 0.85rem;
    color: #5c666d;
}

.candidate-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.candidate-toggle {
    min-width: 2.5rem;
    align-self: start;
}

.candidate-accordion {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    display: grid;
    gap: 0.5rem;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.candidate-accordion.open {
    max-height: 160px;
    opacity: 1;
    margin-top: 0.35rem;
    pointer-events: auto;
}

.candidate-accordion .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

.candidate-footer {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.candidate-primary {
    min-width: 11rem;
}

@media (max-width: 600px) {
    .candidate-footer {
        justify-content: stretch;
    }

    .candidate-primary {
        width: 100%;
    }
}

.search-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.search-mode-label {
    font-weight: 600;
}

.search-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 0rem;
}

.selected-doc-note {
    font-size: 0.85rem;
    color: #2f2f2f;
}

.result-section h3,
.answer-section h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.result-list,
.evidence-list {
    display: grid;
    gap: 0.75rem;
}

.result-card,
.evidence-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.75rem;
    background: #e8e2d8;
    word-break: break-word;
}

.related-page-card {
    border-color: #e4e4e4;
    background: #fafafa;
}

.result-header-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.result-title,
.evidence-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    min-width: 0;
}

.result-page {
    color: #5c666d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.result-meta,
.evidence-meta {
    font-size: 0.85rem;
    color: #5c666d;
    margin-bottom: 0.4rem;
}

.result-snippet,
.evidence-snippet {
    font-size: 0.9rem;
    color: #2d3740;
    margin: 0 0 0.6rem;
    white-space: pre-line;
    word-break: break-word;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

.result-actions,
.evidence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.result-actions .btn {
    min-width: 5rem;
}

@media (max-width: 767px) {
    .search-submit {
        width: 100%;
    }

    .result-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.result-link {
    font-size: 0.82rem;
    color: #3B7C85;
    text-decoration: none;
}

.answer-body {
    background: #f8f1e7;
    border: 1px solid #e6d7c2;
    border-radius: 20px;
    padding: 0.9rem;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.answer-note {
    font-size: 0.85rem;
    color: #5c666d;
    margin: 0.3rem 0 0.8rem;
}

.evidence-section h4 {
    margin: 0 0 0.6rem;
}

.pdf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 1.5rem;
}

.pdf-panel {
    background: #e8e2d8;
    border-radius: 20px;
    width: min(880px, 100%);
    max-height: 90vh;
    display: grid;
    grid-template-rows: auto auto 1fr;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(1px);
    padding: 1rem;
}

.global-loading-panel {
    min-width: 180px;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background: #e8e2d8;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.global-loading-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #d6ecf7;
    border-top-color: #3B7C85;
    border-radius: 50%;
    display: inline-block;
    animation: upload-spin 0.8s linear infinite;
}

.global-loading-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.pdf-header {
    padding: 1rem 1.2rem 0.6rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #ececec;
}

.pdf-title {
    font-weight: 600;
}

.pdf-subtitle {
    font-size: 0.82rem;
    color: #5c666d;
}

.pdf-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-controls {
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: nowrap;
}

.pdf-page-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.pdf-status {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #2f2f2f;
    background: #e8e2d8;
}

.pdf-page-info {
    font-size: 0.85rem;
    color: #2f2f2f;
}

.pdf-page-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #2f2f2f;
}

.pdf-page-label {
    font-size: 0.8rem;
}

.pdf-page-input {
    width: 48px;
    padding: 0.2rem 0.3rem;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1f2933;
    text-align: center;
}

.pdf-page-error {
    padding: 0 1.2rem 0.5rem;
    font-size: 0.82rem;
}

.pdf-zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.pdf-zoom-info {
    font-size: 0.82rem;
    color: #2f2f2f;
    min-width: 2rem;
    text-align: center;
}

.pdf-viewer {
    padding: 1rem;
    overflow: auto;
    background: #f6f7f9;
}

.pdf-canvas-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.pdf-highlight {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(255, 214, 102, 0.35);
    border: 1px solid rgba(255, 193, 7, 0.6);
    pointer-events: none;
}

.answer-card {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: #f8f1e7;
    border: 1px solid #e6d7c2;
}

    .answer-card p {
        white-space: pre-line;
    }

.answer-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.reference-section {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.reference-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #5c666d;
}

.reference-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.75rem;
    background: #e8e2d8;
}

.reference-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.reference-title {
    font-weight: 600;
}

.reference-score {
    font-size: 0.78rem;
    color: #3B7C85;
    white-space: nowrap;
}

.reference-meta {
    font-size: 0.82rem;
    color: #5c666d;
    margin-bottom: 0.4rem;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.usage-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.usage-item {
    background: #f6f8f9;
    border-radius: 20px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.usage-label {
    font-size: 0.85rem;
    color: #5c666d;
}

.usage-note {
    font-size: 0.72rem;
    color: #7a8790;
    line-height: 1.4;
}

.ai-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.ai-action-primary {
    flex: 1;
}

.ai-usage-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3B7C85;
    background: #eef3f7;
    border: 1px solid #d2dee7;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    line-height: 1;
    flex-shrink: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .apps-layout {
        grid-template-columns: 1fr;
    }

    .apps-desktop-priority-layout {
        display: flex;
    }

    .storage-first-layout {
        grid-template-columns: 1fr;
    }

    .storage-first-documents {
        min-height: 0;
    }

    .doc-storage-chip-row {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-gutter: auto;
    }


    .apps-tabs {
        display: none;
    }

    .apps-desktop {
        display: none;
    }

    .apps-mobile {
        display: grid;
        gap: 1rem;
    }

    .apps-page {
        padding-bottom: 5.5rem;
    }

    .pdf-overlay {
        align-items: flex-end;
        padding: 0;
    }


    .pdf-panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .deadline-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .deadline-modal {
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .doc-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .doc-modal {
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .storage-template-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .storage-template-modal {
        width: 100%;
        border-radius: 18px 18px 0 0;
        max-height: 88vh;
    }

    .storage-template-modal__actions {
        flex-direction: column-reverse;
    }

    .storage-template-modal__actions .btn {
        width: 100%;
    }

    .deadline-modal-actions .btn {
        min-height: 2.8rem;
        flex: 1;
    }

    .pdf-controls {
        padding: 0.5rem 0.8rem;
        gap: 0.35rem;
    }

    .pdf-viewer {
        padding: 0.6rem;
    }

    .pdf-controls {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .pdf-page-group {
        flex: 1 1 auto;
    }

    .pdf-zoom {
        margin-left: 0;
    }
}

@media (min-width: 901px) {
    .doc-detail-drawer {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: min(540px, calc(100vw - 1.5rem));
        z-index: 1040;
        pointer-events: none;
    }

    .doc-detail-panel {
        height: 100%;
        width: 100%;
        background: #e8e2d8;
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
    }
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .pdf-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
    }
}

.passkey-section {
    margin-top: 1rem;
}

.passkey-section h4 {
    margin: 0;
}

.passkey-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.passkey-subtitle {
    margin: 0.25rem 0 0.75rem;
    color: #2f2f2f;
    font-size: 0.92rem;
}

.passkey-empty-state {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    background: #fafafa;
    padding: 0.85rem;
}

.passkey-empty-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.passkey-list {
    display: grid;
    gap: 0.5rem;
}

.passkey-item {
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    background: #fafafa;
    padding: 0.7rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.passkey-item-main {
    min-width: 0;
}

.passkey-meta {
    margin-top: 0.2rem;
    color: #2f2f2f;
    font-size: 0.85rem;
}

.account-panel {
    display: grid;
    gap: 0.9rem;
}

.account-login-status {
    margin: 0;
    font-size: 0.82rem;
    color: #5c666d;
}

.account-identifier {
    margin: 0.25rem 0 0;
    font-weight: 600;
    word-break: break-word;
}

.account-section h4 {
    margin: 0;
    font-size: 1.02rem;
}

.account-action-button {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
}

.account-logout-area {
    margin-top: 0.25rem;
}


.btn,
button,
input,
select,
textarea,
.tab,
.card,
.processing-card {
    border-radius: 20px;
}

/* ===== StorageFirst Map (sfm-*) ===== */

.sfm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #7A7368;
}

.sfm-breadcrumb-link {
    border: none;
    background: transparent;
    color: #3D8B7A;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
}

.sfm-breadcrumb-sep {
    color: #B0A898;
}

.sfm-breadcrumb-current {
    font-weight: 600;
    color: #2C2820;
}

.sfm-page-header {
    margin-bottom: 14px;
}

.sfm-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2C2820;
    letter-spacing: -0.3px;
    margin: 0 0 4px;
}

.sfm-page-subtitle {
    font-size: 0.78rem;
    color: #7A7368;
}

.sfm-action-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sfm-btn-action-primary,
.sfm-btn-action-secondary {
    flex: 1;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.sfm-btn-action-primary {
    background: #3D8B7A;
    color: #fff;
    border: 1.5px solid #3D8B7A;
}

.sfm-btn-action-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sfm-btn-action-secondary {
    background: #fff;
    color: #2C2820;
    border: 1.5px solid #E5E0D6;
}

.sfm-unsorted-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF3EB;
    border: 1.5px solid #F0C4A0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font: inherit;
}

.sfm-unsorted-icon {
    width: 36px;
    height: 36px;
    background: #E8935A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sfm-unsorted-text {
    flex: 1;
    min-width: 0;
}

.sfm-unsorted-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #B85C20;
}

.sfm-unsorted-desc {
    font-size: 0.72rem;
    color: #C07840;
    margin-top: 2px;
}

.sfm-unsorted-count {
    background: #E8935A;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.sfm-unsorted-chevron {
    color: #C07840;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sfm-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #B0A898;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 2px;
}

.sfm-place-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #FDFBF7;
    border: 1.5px solid #E5E0D6;
    border-radius: 14px;
    overflow: hidden;
}

.sfm-place-card {
    border-bottom: 1px solid #EDE9E1;
}

.sfm-place-card:last-child {
    border-bottom: none;
}

.sfm-place-card-inner {
    display: flex;
    align-items: center;
}

.sfm-place-card-main {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 14px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.sfm-place-icon-box {
    width: 32px;
    height: 32px;
    background: #EAF4F1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sfm-place-info {
    flex: 1;
    min-width: 0;
}

.sfm-place-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2C2820;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfm-place-meta {
    font-size: 0.72rem;
    color: #7A7368;
    margin-top: 2px;
}

.sfm-place-right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 4px;
    flex-shrink: 0;
}

.sfm-doc-badge {
    background: #EAF4F1;
    color: #3D8B7A;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
    min-width: 28px;
    text-align: center;
    white-space: nowrap;
}

.sfm-doc-badge.is-empty {
    background: #F0EDE6;
    color: #B0A898;
}

.sfm-place-chevron {
    color: #B0A898;
    font-size: 0.85rem;
    margin-right: 4px;
}

.sfm-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #F0EDE6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #7A7368;
    margin-right: 10px;
    flex-shrink: 0;
    font-family: inherit;
}

.sfm-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 12px;
}

.sfm-divider-line {
    flex: 1;
    height: 1px;
    background: #E5E0D6;
}

.sfm-divider-text {
    font-size: 0.7rem;
    color: #B0A898;
    font-weight: 500;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.sfm-doc-section {
    background: #FDFBF7;
    border: 1.5px solid #E5E0D6;
    border-radius: 14px;
    overflow: hidden;
}

.sfm-doc-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #E5E0D6;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-left: none;
    border-right: none;
    border-top: none;
    background: transparent;
    font: inherit;
}

.sfm-doc-list-item:last-child {
    border-bottom: none;
}

.sfm-doc-list-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.sfm-doc-list-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2C2820;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sfm-doc-list-chevron {
    font-size: 0.82rem;
    color: #B0A898;
    flex-shrink: 0;
}

.sfm-doc-empty {
    padding: 16px 0;
    font-size: 0.82rem;
    color: #B0A898;
    text-align: center;
}

/* ── StoragePlaceItem ── */
.storage-place-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 16px;
    background: #FDFBF7;
    border: 1px solid #EDE9E1;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s;
}

.storage-place-item:last-child {
    margin-bottom: 0;
}

.storage-place-item:hover {
    background: #F5F1EB;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.storage-place-item--active {
    background: #EAF4F1;
}

.storage-place-item--active:hover {
    background: #DFF0EC;
}

.storage-place-item__icon {
    width: 32px;
    height: 32px;
    background: #EAF4F1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.storage-place-item__info {
    flex: 1;
    min-width: 0;
}

.storage-place-item__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2C2820;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storage-place-item__meta {
    font-size: 0.72rem;
    color: #9A9080;
    margin-top: 1px;
}

.storage-place-item__right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.storage-place-item__badge {
    background: #3B7C65;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
}

.storage-place-item__badge--empty {
    background: #D6D0C8;
    color: #7A7268;
}

.storage-place-item__menu-btn {
    border: none;
    background: transparent;
    color: #9A9080;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    font: inherit;
    transition: background 0.1s;
}

.storage-place-item__menu-btn:hover {
    background: #E5E0D6;
    color: #2C2820;
}

/* ── StoragePlaceList ── */
.storage-place-list {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.storage-place-list__section-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #B0A898;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 2px;
}

.storage-unsorted-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF5EC;
    border: 1.5px solid #F0C8A0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.storage-unsorted-banner__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.storage-unsorted-banner__label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #B85C20;
}

.storage-unsorted-banner__count {
    background: #E8935A;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ===== PC版 書類管理レイアウト（3カラム） ===== */
@media (min-width: 769px) {

    .storage-pc-layout {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 52px);
        background: #f7f5f0;
        overflow: hidden;
    }

    /* ── トップバー */
    .storage-pc-layout__topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 52px;
        padding: 0 1.25rem;
        background: #ffffff;
        border-bottom: 1px solid #e8e2d8;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        flex-shrink: 0;
    }

    .storage-pc-topbar__logo {
        font-size: 1.05rem;
        font-weight: 700;
        color: #2f2f2f;
        letter-spacing: -0.02em;
        flex-shrink: 0;
    }

    .storage-pc-topbar__nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .storage-pc-topbar__nav-item {
        padding: 5px 13px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 500;
        color: #7a7368;
        text-decoration: none;
        white-space: nowrap;
    }

    .storage-pc-topbar__nav-item--active {
        color: #3d7a5a;
        font-weight: 600;
        border-bottom: 2px solid #3d7a5a;
        padding-bottom: 2px;
    }

    .storage-pc-topbar__right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .storage-pc-topbar__user {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        background: #f0ede6;
        border-radius: 999px;
    }

    .storage-pc-topbar__user-name {
        font-size: 0.78rem;
        font-weight: 600;
        color: #2f2f2f;
    }

    /* ── 3カラム本体 */
    .storage-pc-layout__body {
        display: grid;
        grid-template-columns: minmax(280px, 2fr) minmax(0, 2fr) minmax(220px, 1fr);
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* ── 左カラム：保管場所サイドバー */
    .storage-pc-layout__sidebar {
        border-right: 1px solid #e8e2d8;
        overflow-y: auto;
        padding: 1.1rem 0.9rem;
        background: #ffffff;
    }

    .storage-pc-layout__sidebar::-webkit-scrollbar { width: 4px; }
    .storage-pc-layout__sidebar::-webkit-scrollbar-thumb { background: #e5e0d6; border-radius: 2px; }

    .storage-pc-sidebar__header {
        margin-bottom: 0.85rem;
    }

    .storage-pc-sidebar__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .storage-pc-sidebar__subtitle {
        font-size: 0.72rem;
        color: #9a9088;
        margin-top: 2px;
    }

    /* ── サイドバー内 保管場所行スコープオーバーライド */
    .storage-pc-layout__sidebar .storage-place-row {
        background: #ffffff;
        border: 1px solid #e8e2d8;
        border-radius: 8px;
        margin: 4px 0;
    }

    .storage-pc-layout__sidebar .storage-place-row:hover {
        background: #f0ede8;
    }

    .storage-pc-layout__sidebar .storage-place-row--active,
    .storage-pc-layout__sidebar .storage-place-row[aria-selected="true"] {
        background: #eef4f0;
        border-color: #3d7a5a;
        border-left: 3px solid #3d7a5a;
    }

    .storage-pc-sidebar__path {
        font-size: 0.72rem;
        color: #7a7368;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .storage-pc-tree-nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .storage-pc-tree-shortcut {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.7rem 0.8rem;
        border: 1px solid #e5e0d6;
        border-radius: 10px;
        background: #fdfbf7;
        color: #2f2f2f;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .storage-pc-tree-shortcut--active {
        border-color: #3B7C85;
        background: #eef6f4;
    }

    .storage-pc-tree-shortcut__label {
        font-size: 0.82rem;
        font-weight: 600;
    }

    .storage-pc-tree-shortcut__count {
        min-width: 1.75rem;
        padding: 0.1rem 0.4rem;
        border-radius: 999px;
        background: #efe9dc;
        color: #7a7368;
        font-size: 0.72rem;
        text-align: center;
    }

    .storage-pc-tree {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .storage-pc-tree-item {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .storage-pc-tree-row {
        --storage-tree-indent: calc(var(--storage-tree-depth, 0) * 1rem);
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0.35rem;
        padding-left: var(--storage-tree-indent);
    }

    .storage-pc-tree-row--path .storage-pc-tree-node {
        border-color: #cfe0db;
        background: #f4faf8;
    }

    .storage-pc-tree-row--active .storage-pc-tree-node {
        border-color: #3B7C85;
        background: #eef6f4;
    }

    .storage-pc-tree-toggle {
        width: 1.5rem;
        height: 1.5rem;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: #7a7368;
        font: inherit;
        cursor: pointer;
    }

    .storage-pc-tree-toggle:hover {
        background: #efe9dc;
    }

    .storage-pc-tree-toggle--placeholder {
        cursor: default;
    }

    .storage-pc-tree-node {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.55rem 0.7rem;
        border: 1px solid #ece6da;
        border-radius: 10px;
        background: #fdfbf7;
        color: #2f2f2f;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .storage-pc-tree-node__name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
    }

    .storage-pc-tree-node__count {
        flex-shrink: 0;
        min-width: 1.75rem;
        padding: 0.08rem 0.38rem;
        border-radius: 999px;
        background: #efe9dc;
        color: #7a7368;
        font-size: 0.7rem;
        text-align: center;
    }

    /* ── 中央カラム：書類一覧 */
    .storage-pc-layout__content {
        overflow-y: auto;
        padding: 1.25rem 1.4rem;
        background: #f7f5f0;
    }

    .storage-pc-layout__content::-webkit-scrollbar { width: 4px; }
    .storage-pc-layout__content::-webkit-scrollbar-thumb { background: #e5e0d6; border-radius: 2px; }

    .storage-pc-breadcrumb {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.78rem;
        color: #9a9088;
        margin-bottom: 0.85rem;
    }

    .storage-pc-breadcrumb__link {
        background: none;
        border: none;
        padding: 0;
        font-size: inherit;
        font-family: inherit;
        color: #3d7a5a;
        cursor: pointer;
    }

    .storage-pc-breadcrumb__sep {
        color: #b0a898;
    }

    .storage-pc-breadcrumb__current {
        color: #7a7368;
    }

    .storage-pc-content__header {
        margin-bottom: 1rem;
    }

    .storage-pc-content__title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2f2f2f;
        letter-spacing: -0.02em;
    }

    .storage-pc-content__subtitle {
        font-size: 0.78rem;
        color: #9a9088;
        margin-top: 2px;
    }

    .storage-pc-section-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #9a9088;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: 1px solid #e8e2d8;
    }

    .storage-pc-child-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .storage-pc-child-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.8rem 0.9rem;
        border: 1px solid #e5e0d6;
        border-radius: 10px;
        background: #fdfbf7;
        color: #2f2f2f;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .storage-pc-child-card__name {
        font-size: 0.86rem;
        font-weight: 600;
    }

    .storage-pc-child-card__meta,
    .storage-pc-child-card__chevron {
        font-size: 0.74rem;
        color: #7a7368;
    }

    .storage-pc-doc-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .storage-pc-doc-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        background: #ffffff;
        border: 1px solid #e8e2d8;
        border-radius: 8px;
        padding: 12px 14px;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: background 0.15s;
    }

    .storage-pc-doc-row:hover {
        background: #f0ede8;
    }

    .storage-pc-doc-row--active,
    .storage-pc-doc-row--selected {
        background: #eef4f0;
        border-color: #3d7a5a;
        border-left: 3px solid #3d7a5a;
    }

    .storage-pc-doc-row__icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .storage-pc-doc-row__body {
        flex: 1;
        min-width: 0;
    }

    .storage-pc-doc-row__title {
        font-size: 0.88rem;
        font-weight: 600;
        color: #2f2f2f;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .storage-pc-doc-row__meta {
        font-size: 0.72rem;
        color: #9a9088;
        margin-top: 1px;
    }

    .storage-pc-doc-row__chevron {
        color: #b0a898;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    /* ── 右カラム：予定パネル */
    .storage-pc-layout__right-panel {
        border-left: 1px solid #e8e2d8;
        overflow-y: auto;
        padding: 1.1rem 1rem;
        background: #ffffff;
    }

    .storage-pc-layout__right-panel::-webkit-scrollbar { width: 4px; }
    .storage-pc-layout__right-panel::-webkit-scrollbar-thumb { background: #e5e0d6; border-radius: 2px; }

    .storage-pc-panel__header {
        margin-bottom: 0.85rem;
    }

    .storage-pc-panel__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .storage-pc-panel__subtitle {
        font-size: 0.72rem;
        color: #7a7368;
        margin-top: 2px;
    }

    .storage-pc-panel__filters {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 0.85rem;
    }

    .storage-pc-filter-btn {
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 600;
        font-family: inherit;
        border: 1.5px solid #e5e0d6;
        background: #fdfbf7;
        color: #7a7368;
        cursor: pointer;
        transition: background 0.1s, color 0.1s;
    }

    .storage-pc-filter-btn--active {
        background: #3B7C85;
        border-color: #3B7C85;
        color: #fff;
    }

    .storage-pc-event-card {
        background: #fdfbf7;
        border: 1.5px solid #e5e0d6;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 7px;
    }

    .storage-pc-event-card__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 4px;
    }

    .storage-pc-event-card__title {
        font-size: 0.82rem;
        font-weight: 600;
        color: #2f2f2f;
        flex: 1;
        min-width: 0;
    }

    .storage-pc-event-card__badge {
        font-size: 0.68rem;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .storage-pc-event-card__badge--attention {
        background: #fef3eb;
        color: #E8935A;
    }

    .storage-pc-event-card__meta {
        font-size: 0.72rem;
        color: #7a7368;
    }

    .storage-pc-empty {
        border: 1px dashed #d8d1c5;
        border-radius: 14px;
        background: #fdfbf7;
        padding: 1.1rem;
    }

    .storage-pc-empty--inline {
        margin-bottom: 1rem;
    }

    .storage-pc-empty__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .storage-pc-empty__body {
        margin-top: 0.3rem;
        font-size: 0.8rem;
        color: #7a7368;
    }

    .storage-pc-section-label--spaced {
        margin-top: 1.1rem;
    }

    .storage-pc-detail-card {
        background: #ffffff;
        border: 1px solid #e8e2d8;
        border-radius: 10px;
        padding: 1rem;
    }

    .storage-pc-detail-card__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .storage-pc-detail-card__title {
        margin: 0;
        font-size: 1.15rem;
        color: #2f2f2f;
    }

    .storage-pc-detail-card__meta {
        margin-top: 0.3rem;
        font-size: 0.78rem;
        color: #7a7368;
    }

    .storage-pc-action-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .storage-pc-action-row--right {
        margin-bottom: 0.85rem;
    }

    .storage-pc-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .storage-pc-detail-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.8rem;
        border-radius: 12px;
        background: #f7f5f0;
    }

    .storage-pc-detail-field__label {
        font-size: 0.72rem;
        color: #7a7368;
    }

    .storage-pc-detail-field__value {
        font-size: 0.86rem;
        font-weight: 600;
        color: #2f2f2f;
    }

    .storage-pc-detail-section {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #ece6db;
    }

    .storage-pc-detail-section__title {
        margin-bottom: 0.75rem;
        font-size: 0.88rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .storage-pc-form-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .storage-pc-form-field {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.78rem;
        color: #4b4b4b;
    }

    .storage-pc-select,
    .storage-pc-input {
        width: 100%;
        border: 1px solid #d7d0c4;
        border-radius: 10px;
        padding: 0.65rem 0.75rem;
        background: #fff;
        font: inherit;
        color: #2f2f2f;
    }

    .storage-pc-history-list {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .storage-pc-history-item {
        padding: 0.75rem;
        border-radius: 12px;
        background: #f7f5f0;
    }

    .storage-pc-history-item__date {
        font-size: 0.72rem;
        color: #7a7368;
    }

    .storage-pc-history-item__text {
        margin-top: 0.15rem;
        font-size: 0.82rem;
        color: #2f2f2f;
    }

    .storage-pc-history-item__note {
        margin-top: 0.25rem;
        font-size: 0.75rem;
        color: #7a7368;
    }

    .storage-pc-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-bottom: 0.85rem;
    }

    .storage-pc-summary-card {
        padding: 0.85rem;
        border: 1px solid #e5e0d6;
        border-radius: 12px;
        background: #fdfbf7;
    }

    .storage-pc-summary-card__label {
        font-size: 0.72rem;
        color: #7a7368;
    }

    .storage-pc-summary-card__value {
        margin-top: 0.25rem;
        font-size: 1rem;
        font-weight: 700;
        color: #2f2f2f;
    }

    .storage-pc-schedule-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .storage-pc-schedule-card {
        background: #fdfbf7;
        border: 1px solid #e5e0d6;
        border-radius: 12px;
        padding: 0.8rem;
    }

    .storage-pc-schedule-card__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .storage-pc-schedule-card__title {
        font-size: 0.82rem;
        font-weight: 600;
        color: #2f2f2f;
    }

    .storage-pc-schedule-card__meta {
        margin-top: 0.25rem;
        font-size: 0.72rem;
        color: #7a7368;
    }

    /* ── プレースホルダー */
    .storage-pc-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 240px;
        gap: 12px;
        color: #b0a89e;
        background: #ffffff;
        border: 1px dashed #d8d2c8;
        border-radius: 10px;
    }

    .storage-pc-placeholder__icon {
        font-size: 2.5rem;
        opacity: 0.6;
    }

    .storage-pc-placeholder__text {
        font-size: 0.9rem;
        color: #9a9088;
    }

    /* ── 書類詳細パネル（代替クラス群） */
    .storage-pc-detail {
        background: #ffffff;
        border: 1px solid #e8e2d8;
        border-radius: 10px;
        padding: 20px;
    }

    .storage-pc-detail__back {
        background: none;
        border: none;
        color: #3d7a5a;
        cursor: pointer;
        font-size: 0.85rem;
        padding: 0 0 14px 0;
        display: block;
    }

    .storage-pc-detail__back:hover {
        text-decoration: underline;
    }

    .storage-pc-detail__title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2f2f2f;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .storage-pc-detail__subtitle {
        font-size: 0.8rem;
        color: #9a9088;
        margin-bottom: 16px;
    }

    .storage-pc-detail__section {
        border-top: 1px solid #e8e2d8;
        padding: 14px 0;
    }

    .storage-pc-detail__section-label {
        font-size: 0.72rem;
        color: #9a9088;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 8px;
    }

    .storage-pc-detail__section-value {
        font-size: 0.95rem;
        font-weight: 500;
        color: #2f2f2f;
        margin-bottom: 8px;
    }

    .storage-pc-detail__meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 0.85rem;
        color: #2f2f2f;
        margin-bottom: 8px;
    }

    .storage-pc-detail__badge {
        display: inline-block;
        font-size: 0.75rem;
        padding: 3px 10px;
        border-radius: 4px;
        font-weight: 500;
        width: fit-content;
        margin-top: 4px;
    }

    .storage-pc-detail__badge--green {
        background: #e8f4ee;
        color: #3d7a5a;
    }

    .storage-pc-detail__badge--yellow {
        background: #fef8e7;
        color: #a07800;
    }

    .storage-pc-detail__badge--red {
        background: #fdecea;
        color: #c0392b;
    }

    .storage-pc-detail__actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ===== PC版共通レイアウト (AppLayoutPc) ===== */
@media (min-width: 769px) {

    .app-layout-pc {
        display: flex;
        flex-direction: column;
        height: 100vh;
        background: #f7f5f0;
        overflow: hidden;
    }

    /* ── トップバー */
    .app-layout-pc__topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 52px;
        padding: 0 1.25rem;
        background: #fdfbf7;
        border-bottom: 1px solid #e5e0d6;
        flex-shrink: 0;
    }

    .app-layout-pc__logo {
        font-size: 1.05rem;
        font-weight: 700;
        color: #2f2f2f;
        letter-spacing: -0.02em;
        flex-shrink: 0;
    }

    .app-layout-pc__nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .app-layout-pc__nav-item {
        padding: 5px 13px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 500;
        color: #7a7368;
        text-decoration: none;
        white-space: nowrap;
    }

    .app-layout-pc__nav-item--active {
        background: #eaf4f1;
        color: #3B7C85;
        font-weight: 700;
    }

    .app-layout-pc__topbar-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .app-layout-pc__user {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        background: #f0ede6;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #2f2f2f;
    }

    /* ── コンテンツエリア */
    .app-layout-pc__body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .storage-pc-info-bar {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 0.5rem 0.5rem;
        padding: 0.75rem 1rem;
        background: #f6f8f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        color: #475569;
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .storage-pc-info-bar__icon {
        flex-shrink: 0;
        color: #64748b;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .storage-pc-info-bar__text {
        min-width: 0;
    }
}

/* ── 書類詳細セクション */
.doc-section { padding: 14px 0; border-top: 1px solid #e8e2d8; display: flex; flex-direction: column; gap: 10px; }
.doc-section__label { font-size: 0.72rem; color: #9a9088; font-weight: 600; letter-spacing: 0.03em; }

/* 保管場所レイアウト */
.location-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.location-name { font-size: 1rem; font-weight: 700; word-break: break-word; }
.location-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.history-link { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: #7a7368; }
.btn-ghost { padding: 4px 0; background: transparent; color: #3d7a5a; border: none; font-size: 0.78rem; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* PDFステータス */
.file-status { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #7a7368; }
.badge-ok { background: #e8f5ee; color: #3d7a5a; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

/* アクションボタン行 */
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 予定バッジ */
.schedule-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 8px; font-size: 0.82rem; cursor: pointer; border: 1px solid #d8d2c8; background: #fff; font-family: inherit; }
.schedule-badge__count { background: #3d7a5a; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 0.75rem; font-weight: 700; min-width: 22px; text-align: center; }
.schedule-badge__count--pending { background: #e07000; }

/* 削除ボタン */
.btn-danger { padding: 8px 16px; background: #fff; color: #c0392b; border: 1px solid #e8c0bc; border-radius: 8px; font-size: 0.82rem; font-family: inherit; cursor: pointer; }
.btn-danger:hover { background: #fde2e2; border-color: #f5b9b9; color: #8a1c1c; }

/* 書類詳細ページ内のボタンをモック準拠（8px radius）にスコープ上書き */
.document-hub-page .btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    background: #3d7a5a;
    border-color: #3d7a5a;
}
.document-hub-page .btn.btn-outline {
    background: #fff;
    color: #2f2f2f;
    border: 1px solid #d8d2c8;
}
.document-hub-page .btn:disabled,
.document-hub-page .btn:disabled:hover {
    background: #f0ede8;
    color: #b0a89e;
    border-color: #e0dbd2;
    cursor: not-allowed;
    opacity: 1;
}
.document-hub-page .btn.btn-outline:disabled,
.document-hub-page .btn.btn-outline:disabled:hover {
    background: #f0ede8;
    color: #b0a89e;
    border-color: #e0dbd2;
    cursor: not-allowed;
    opacity: 1;
}

/* ===== ファイル登録フォーム (upf-*) ===== */

.upf-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upf-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upf-section {
    padding: 14px 0;
    border-top: 1px solid #e8e2d8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upf-section__label {
    font-size: 0.72rem;
    color: #9a9088;
    font-weight: 600;
}

.upf-method-tabs {
    display: flex;
    gap: 8px;
}

.upf-method-tab {
    flex: 1;
    padding: 9px 0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 1px solid #d8d2c8;
    background: #fff;
    color: #7a7368;
}

.upf-method-tab--active {
    background: #3d7a5a;
    color: #fff;
    border-color: #3d7a5a;
}

.upf-file-btn {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    color: #2f2f2f;
    text-align: center;
}

.upf-file-btn:hover {
    border-color: #3d7a5a;
    color: #3d7a5a;
}

.upf-btn-submit {
    width: 100%;
    padding: 11px;
    background: #3d7a5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.upf-btn-submit:disabled {
    background: #c8d8cf;
    cursor: not-allowed;
}

/* ===== 最近入れた書類リスト (upsl-*) ===== */

.upsl-section {
    padding: 14px 0;
    border-top: 1px solid #e8e2d8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upsl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upsl-btn-refresh {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    color: #7a7368;
}

.upsl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upsl-item {
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.upsl-item__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.upsl-item__title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upsl-item__sub {
    font-size: 0.72rem;
    color: #9a9088;
}

.upsl-btn-open {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    color: #2f2f2f;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 予定候補承認モーダル (cand-*) ===== */

.cand-modal-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #7a7368;
}

/* 一括操作バー */
.cand-bulk-bar {
    padding: 10px 16px;
    background: #f7f5f0;
    border-bottom: 1px solid #e8e2d8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cand-bulk-bar__select {
    display: flex;
    gap: 6px;
    flex: 1;
}

.btn-cand-bulk-select {
    padding: 5px 10px;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    background: #fff;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    color: #2f2f2f;
}

.cand-bulk-bar__actions {
    display: flex;
    gap: 6px;
}

.btn-cand-bulk-approve {
    padding: 5px 12px;
    background: #3d7a5a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.btn-cand-bulk-approve:disabled {
    background: #c8d8cf;
    cursor: not-allowed;
}

.btn-cand-bulk-reject {
    padding: 5px 12px;
    background: #fff;
    color: #c0392b;
    border: 1px solid #e8c0bc;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.btn-cand-bulk-reject:disabled {
    color: #d8a8a4;
    border-color: #f0d8d6;
    cursor: not-allowed;
}

/* 選択件数表示 */
.cand-selected-count {
    padding: 6px 16px;
    font-size: 0.75rem;
    color: #3d7a5a;
    font-weight: 600;
    background: #e8f5ee;
    border-bottom: 1px solid #d0eadb;
    flex: 0 0 auto;
}

.cand-selected-count--none {
    color: #9a9088;
    background: transparent;
    border-bottom: 1px solid #e8e2d8;
}

/* 候補リスト（スクロール領域） */
.cand-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

/* 候補アイテム */
.cand-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0ece3;
    cursor: pointer;
    transition: background 0.1s;
}

.cand-item:hover { background: #faf8f4; }

.cand-item--checked { background: #f0f8f4; }
.cand-item--checked:hover { background: #e8f5ee; }

/* チェックボックス */
.cand-item__check {
    width: 20px;
    height: 20px;
    border: 2px solid #d8d2c8;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 0.75rem;
}

.cand-item--checked .cand-item__check {
    background: #3d7a5a;
    border-color: #3d7a5a;
    color: #fff;
}

/* 候補テキスト */
.cand-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cand-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2f2f2f;
}

.cand-item__date {
    font-size: 0.78rem;
    color: #7a7368;
}


/* ===== アカウント・設定画面 (acct-*) ===== */

.acct-panel {
    display: flex;
    flex-direction: column;
}

.acct-section {
    padding: 14px 0;
    border-top: 1px solid #e8e2d8;
}

.acct-section:first-child {
    border-top: none;
    padding-top: 0;
}

.acct-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #B0A898;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* アカウント名 */
.acct-user-status {
    font-size: 12px;
    color: #7A7368;
    margin-bottom: 2px;
}

.acct-user-name {
    font-size: 17px;
    font-weight: 700;
    color: #2C2820;
}

/* プランバナー */
.acct-plan-banner {
    background: #EAF4F1;
    border: 1.5px solid #C5E4DD;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.acct-plan-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.acct-plan-banner-body {
    flex: 1;
}

.acct-plan-banner-name {
    font-size: 15px;
    font-weight: 700;
    color: #3D7A5A;
}

.acct-plan-banner-desc {
    font-size: 11px;
    color: #5A9E8E;
    margin-top: 2px;
}

.acct-plan-banner-price {
    font-size: 13px;
    font-weight: 700;
    color: #3D7A5A;
    flex-shrink: 0;
}

.acct-billing-card {
    margin-top: 10px;
    border: 1.5px solid #e5e0d6;
    border-radius: 14px;
    background: #fdfbf7;
    padding: 14px;
}

.acct-billing-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c2820;
}

.acct-billing-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #5f5a52;
}

.acct-billing-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #7a7368;
}

.acct-billing-note--warn {
    color: #9b4d3a;
}

.acct-billing-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.acct-secondary-btn {
    background: #fff;
    color: #2c2820;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid #d8d2c8;
    cursor: pointer;
    white-space: nowrap;
}

.acct-secondary-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* 利用状況グリッド */
.acct-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.acct-usage-card {
    background: #FDFBF7;
    border: 1.5px solid #E5E0D6;
    border-radius: 14px;
    padding: 14px;
}

.acct-usage-card-label {
    font-size: 10px;
    color: #B0A898;
    font-weight: 600;
    margin-bottom: 6px;
}

.acct-usage-card-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #2C2820;
}

.acct-usage-card-value--warn {
    color: #C0392B;
}

.acct-usage-card-unit {
    font-size: 11px;
    font-weight: 500;
    color: #7A7368;
    margin-left: 2px;
}

.acct-usage-card-sub {
    font-size: 10px;
    color: #B0A898;
    margin-top: 3px;
}

/* リストグループ */
.acct-list-group {
    background: #FDFBF7;
    border-radius: 16px;
    border: 1.5px solid #E5E0D6;
    overflow: hidden;
}

.acct-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    border-bottom: 1px solid #E5E0D6;
}

.acct-list-item:last-child {
    border-bottom: none;
}

.acct-list-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.acct-icon-green {
    background: #EAF4F1;
}

.acct-icon-gray {
    background: #F0EDE6;
}

.acct-list-item-body {
    flex: 1;
}

.acct-list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2C2820;
}

.acct-list-item-desc {
    font-size: 11px;
    color: #7A7368;
    margin-top: 2px;
}

.acct-desc-green {
    color: #3D7A5A;
    font-weight: 600;
}

.acct-list-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.acct-list-item-chevron {
    font-size: 16px;
    color: #B0A898;
}

/* 登録ボタン */
.acct-register-btn {
    background: #3D7A5A;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.acct-register-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ログアウトボタン */
.acct-logout-btn {
    width: 100%;
    background: transparent;
    border: 1.5px solid #E0C8C5;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #B05050;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.acct-logout-btn:hover {
    background: #fdf0f0;
}

/* DocumentDetail — feature cards */
.doc-feature-card { background: #fff; border: 1px solid #e0dbd2; border-radius: 10px; padding: 12px 14px; margin-bottom: 0; }
.doc-feature-card--muted { background: #faf8f5; border-color: #ece8e0; }
.doc-feature-card--dashed { border-style: dashed; }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.status-badge--done { background: #e8f5ee; color: #2d6e4a; border: 1px solid #b8d8c8; }
.status-badge--pending { background: #f5f0e8; color: #7a6a48; border: 1px solid #e0d4b8; }

/* Schedule count chips */
.schedule-count-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e0dbd2; border-radius: 20px; padding: 6px 12px; font-size: 0.8rem; color: #5a5450; cursor: pointer; font-family: inherit; }
.schedule-count-chip .count-num { background: #3d7a5a; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; }
.schedule-count-chip .count-num--zero { background: #c8c2b8; }

/* Section dashed divider */
.section-divider-dashed { border: none; border-top: 1px dashed #e0dbd2; margin: 10px 0; }

/* Disabled hint text */
.hint-disabled { font-size: 0.68rem; color: #b0a89e; display: block; margin-top: 4px; }

/* 更新ボタン（解析中状態） */

.doc-inline-status {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: #f3f8fc;
    border: 1px solid #d8e7f3;
    border-radius: 10px;
    padding: 10px 12px;
    color: #325469;
}

.doc-inline-status__spinner {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #d0e2ef;
    border-top-color: #5a89a6;
    border-radius: 50%;
    animation: upload-spin 1s linear infinite;
    margin-top: 3px;
    flex-shrink: 0;
}

.doc-inline-status__icon {
    font-size: 0.8rem;
    line-height: 1;
    margin-top: 4px;
    flex-shrink: 0;
}

.doc-inline-status__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.doc-inline-status__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
}

.doc-inline-status__desc {
    margin: 0;
    font-size: 0.73rem;
    color: #567082;
}

.doc-inline-status--error {
    background: #fdf3f3;
    border-color: #f0d3d3;
    color: #8b3d3d;
}

.doc-inline-status--error .doc-inline-status__desc {
    color: #9f5656;
}

.doc-action-btn--refresh {
    font-size: 0.78rem;
    color: #5a5450;
}

/* 確認ダイアログオーバーレイ */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 0 24px;
    max-width: 320px;
    width: calc(100% - 48px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.confirm-dialog__message {
    font-size: 0.9rem;
    color: #2f2f2f;
    line-height: 1.7;
    margin-bottom: 16px;
}

.confirm-dialog__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
}

.confirm-dialog__actions button {
    white-space: nowrap;
    flex-shrink: 0;
}

.doc-refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 4px;
    margin-bottom: 4px;
}

.doc-refresh-bar__time {
    font-size: 0.85rem;
    color: #b0a89e;
}

.doc-refresh-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #5a7a6a;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-left: auto;
}

.doc-refresh-bar__btn:hover {
    color: #3d7a5a;
}

.doc-refresh-bar__btn:disabled {
    color: #b0a89e;
    cursor: not-allowed;
}
