body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fa;
    color: #172033;
}

.mobile-shell {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px 32px;
}

.mobile-header {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid #cfdbea;
    border-top: 3px solid #2f5f8f;
    padding-top: 14px;
    padding-bottom: 16px;
}

.mobile-header h1 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.1;
}

.mobile-user-name {
    margin: 0;
    color: #3f4b5f;
    font-size: 14px;
    font-weight: 600;
}

.mobile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    margin: 16px 0 24px;
}

.mobile-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #c8d2dd;
    border-radius: 8px;
    padding: 0 12px;
    color: #172033;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.mobile-button[href="/link/?view=desktop"] {
    border-color: #c7d8eb;
    color: #244f78;
    background: #edf5fd;
}

.mobile-button[href="/link/admin/"] {
    border-color: #2f5f8f;
    color: #ffffff;
    background: #2f5f8f;
}

.mobile-button[href="/link/auth/logout.php"] {
    border-color: #d8d2d2;
    color: #6f3f3f;
    background: #fbf8f8;
}

.mobile-button.primary {
    border-color: #2f5f8f;
    color: #ffffff;
    background: #2f5f8f;
}

.mobile-notice {
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
    color: #58616d;
    background: #ffffff;
}

.mobile-sections {
    display: grid;
    gap: 28px;
}

.mobile-group h2 {
    border-left: 4px solid #7fa0c5;
    padding-left: 10px;
    margin: 0 0 12px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

.mobile-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-card {
    display: grid;
    gap: 7px;
    box-sizing: border-box;
    min-height: 82px;
    border: 1px solid #dbe2ea;
    border-left: 4px solid #c7d8eb;
    border-radius: 8px;
    padding: 14px 16px;
    color: #172033;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.mobile-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

a.mobile-card:active {
    border-color: #8fb0d4;
    border-left-color: #2f5f8f;
    background: #f8fbff;
}

.mobile-card.invalid-url {
    color: #647083;
    background: #f8fafc;
}

.mobile-title {
    color: #244f78;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.invalid-url .mobile-title {
    color: #4b5563;
}

.mobile-description {
    color: #58616d;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mobile-badge {
    justify-self: end;
    border-radius: 999px;
    padding: 3px 8px;
    color: #244f78;
    background: #e8f1fb;
    font-size: 12px;
    font-weight: 700;
}

.mobile-badge-public {
    background: #e8f1fb;
    color: #244f78;
}

.mobile-badge-company {
    background: #e8f4ed;
    color: #246044;
}

.mobile-badge-personal {
    background: #f0eafa;
    color: #5b3f86;
}
