@media (max-width: 700px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    header,
    main {
        padding: 0.85rem 0.25rem;
    }

    header {
        padding: 0.55rem 0.85rem;
        gap: 0;
    }

    .header-full {
        display: none;
    }

    .mobile-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-home-btn {
        display: inline-flex;
        align-items: center;
        font-size: 0.9rem;
        color: var(--color-text-muted, #aaa);
        text-decoration: none;
        padding: 0.2rem 0;
    }

    .mobile-home-btn:hover {
        color: var(--color-text, #fff);
    }

    .mobile-brand {
        display: inline-flex;
        align-items: center;
    }

    .mobile-brand-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #edf2f7;
        text-decoration: none;
        letter-spacing: -0.01em;
    }

    h1 {
        font-size: 2.35rem;
        line-height: 1.05;
    }

    h2 {
        font-size: 1.85rem;
        line-height: 1.1;
    }

    .page-header,
    .panel {
        margin-bottom: 0.85rem;
        padding-bottom: 0.9rem;
    }

    .page-header,
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-project .project-header-main {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .page-header-project .project-header-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-header-project .project-header-edit {
        margin-left: auto;
    }
    .meta,
    .empty-state,
    .field-help {
        font-size: 0.92rem;
    }

    nav.link-row,
    .link-row {
        gap: 0.4rem;
    }

    nav a,
    .button,
    button {
        padding: 0.45rem 0.72rem;
        font-size: 0.95rem;
    }

    input,
    select,
    textarea,
    button {
        padding: 0.55rem 0.65rem;
        font-size: 0.95rem;
    }

    .icon-button {
        width: 2.2rem;
        min-width: 2.2rem;
        padding: 0.45rem;
    }

    .item-inline-shortcut,
    .item-inline-actions .icon-button {
        width: 2.45rem;
        min-width: 2.45rem;
        height: 2.45rem;
    }

    .item-tree-connector {
        font-size: 0.95rem;
        margin-right: 0.25rem;
        opacity: 0.6;
    }

    table {
        font-size: 0.85rem;
    }

    .panel > table {
        table-layout: fixed;
    }

    th,
    td {
        padding: 0.5rem 0.4rem;
        overflow-wrap: anywhere;
    }

    [data-inline-item-table] {
        width: 100%;
        min-width: 0;
        font-size: 0.82rem;
        table-layout: auto;
    }

    .table-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overscroll-behavior-x: contain;
    }

    .table-scroll table,
    [data-inline-item-table] {
        width: 100%;
        min-width: 0;
    }

    [data-inline-item-table] .status-column,
    [data-inline-item-table] .action-column,
    [data-inline-item-table] .responsible-column {
        display: none;
    }

    [data-inline-item-table] th:nth-child(3),
    [data-inline-item-table] td:nth-child(3) {
        width: 6.2rem;
        white-space: nowrap;
        padding-right: 0;
    }

    [data-inline-item-table] .item-title-wrap {
        padding-left: 0 !important;
        align-items: stretch;
        gap: 0.35rem;
    }

    [data-inline-item-table] .item-title-content {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        min-width: 0;
    }

    [data-inline-item-table] .item-title-main {
        align-items: flex-start;
    }

    [data-inline-item-table] .item-title-meta-mobile {
        display: flex;
        justify-content: flex-end;
    }

    [data-inline-item-table] .item-title-meta-mobile .person-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
    }

    [data-inline-item-table] .item-title-meta-mobile .item-title-meta-empty {
        text-align: right;
    }

    .status-indicator.item-title-status-mobile {
        display: inline-flex;
        margin-right: 0.4rem;
    }

    .item-title-cell {
        width: auto;
        white-space: normal;
    }

    .item-title-link,
    .item-title-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .person-badges {
        gap: 0.3rem;
    }

    .person-badge {
        padding: 0.18rem 0.48rem;
        font-size: 0.76rem;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .detail-grid,
    .item-inline-grid,
    .item-child-grid,
    .item-modal-row {
        grid-template-columns: 1fr;
    }

    .item-inline-panel {
        gap: 0.75rem;
        padding: 0.75rem 0.75rem 0.6rem;
    }

    .item-inline-toolbar,
    .item-inline-actions,
    .item-child-toolbar,
    .item-title-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-inline-bar {
        gap: 0.4rem;
    }

    .item-bar-fields {
        gap: 0.3rem;
    }

    .item-bar-fields input[type="date"] {
        width: 6.6rem;
        font-size: 0.85rem;
    }

    .date-sep {
        font-size: 0.72rem;
    }

    .status-picker {
        gap: 0.2rem;
    }

    .status-pick {
        padding: 0.12rem;
    }

    .status-pick-dot {
        width: 0.72rem;
        height: 0.72rem;
    }

    trix-editor {
        min-height: 6rem;
        padding: 0.7rem 0.8rem;
    }
}



